Skip to content

Conversation

@Coontzy1
Copy link

@Coontzy1 Coontzy1 commented Oct 9, 2025

Wired the argument -history to be applicable for dumping SAM hash history for both regsecrets.py and secretsdump.py.

Applicable to both remote and local operations with secretsdump.py

Copied the _history style seen in the NTDS with _history[num]. _history0 is also the current password/hash that's set and _history1 is the last password/hash set.

This was tested against Windows 10/11 Pro. Could probably be implemented for old-style hashes for Windows XP and Server 2003 but currently if -history is passed with secretsdump.py against older systems it will just not attempt to parse history.
[+] Skipping old-style history...

Local Secretsdump.py
localsecretsdumpy2

Remote Secretsdump.py:
secretsdump

Regsecrets.py:
regsecrets

Corresponding hashes confirmed with mimikatz:
mimikatz

@Coontzy1 Coontzy1 changed the title Added SAM history parsing to secretsdump.py and secretsdump.py Added SAM history parsing to secretsdump.py and regsecrets.py Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant