> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/active-directory/credentials/lsass-and-sam-dump-on-windows.md).

# Extraktion von LSASS und SAM unter Windows

Sicherheitsnotizen zu Active Directory für „Extraktion von LSASS und SAM unter Windows“, mit Abdeckung von Enumeration, Kerberos, Anmeldeinformationen, ACL-Missbrauch, lateraler Bewegung, Ausnutzungs-Workflow und Validierungsschritten.

### Ausführung im Labor

Im Labor öffnen wir mehrere PowerShell-Sitzungen:

* zwei Sitzungen mit einem lokalen Administrator;
* eine Sitzung mit einem Domänenadministrator.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-0c921cf7ce810d933c7c75a71a17cfe4117e800b%2F%7BF97C5D39-C7C3-4FB7-9D35-91D6C6B0DF0B%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

Dann starten wir das Tool aus einer PowerShell-Sitzung eines lokalen Administrators:

```bash
./mimikats.exe
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-a2b84e29b9cf64c8a59611a57710b342248f507c%2F%7B5FA0A2F7-2F2D-4D33-88A3-3A77A6B505B3%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

### Sitzungsinformationen anzeigen

Im Tool:

```powershell
sekurlsa::logonpasswords
```

Dieser Befehl zeigt Informationen zu Authentifizierungssitzungen an, die im Speicher vorhanden sind.

Je nach Kontext können wir Informationen sehen wie:

* verbundene Benutzer;
* Domäne;
* Authentifizierungstyp;
* Hashes ;
* Kerberos-bezogene Tickets oder Elemente;
* interaktive oder Netzwerksitzungen.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-193b4f9393c6aeaa2c24b573e1a54dd0eebe2973%2Fimage%20(3298).png?alt=media" alt=""><figcaption></figcaption></figure>

### Einen NTLM-Hash knacken

Wenn im Labor ein NTLM-Hash ermittelt wird, kann er mit John getestet werden:

```bash
john --format=NT admin.hash
```

Das verdeutlicht das Risiko schwacher oder wiederverwendeter Passwörter.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-e84c1395e4b2179c68336403fca7d1f3f7fb6080%2F%7B5281B1A9-6539-479E-B32F-E7940E736221%7D.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/de/active-directory/credentials/lsass-and-sam-dump-on-windows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
