> 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

### 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="/files/b753df60c2795e9c7f99c6e077d1b0d0fd1be344" alt=""><figcaption></figcaption></figure>

Dann starten wir das Tool aus einer PowerShell-Sitzung mit lokalem Administrator:

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

<figure><img src="/files/b3d65f5d519400d5564cfd1b1fb780d20ebfd3ca" 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 Einträge;
* interaktive oder Netzwerksitzungen.

<figure><img src="/files/90fe3faa6a7735bcc7d7d59f7b34e10696a3d1cb" 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
```

Dies veranschaulicht das Risiko schwacher oder wiederverwendeter Passwörter.

<figure><img src="/files/8a0b9340560f89580a57f3750dff584f7d06b050" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
