Hashcat: GPU-accelerated hash cracking
Crack dumped NTLM or Linux shadow hashes against a wordlist.
bash·1 min read··INE Certification
Hashcat needs to know the hash type before it can crack it. This is what the -m mode number is for.
Windows NTLM hashes
From a meterpreter hashdump or similar:
hashcat -a 3 -m 1000 hashes.txt /usr/share/wordlists/rockyou.txt
hashcat -a 3 -m 1000 --show hashes.txt /usr/share/wordlists/rockyou.txt # show already-cracked results
Linux shadow hashes
sha512crypt ($6$ format), as dumped in Linux password hash dumping:
hashcat --help | grep 1800 # confirm the mode number for your hash format
hashcat -a 3 -m 1800 linux_hashes.txt /usr/share/wordlists/rockyou.txt
-a 3is straight brute-force/mask mode; for a wordlist-only attack use-a 0instead.--showre-displays cracked hashes from the potfile without re-running the attack — handy after a long job finishes and the terminal’s scrolled away.- If you’re not sure what hash format you’re holding,
hashcat --help | grep -i <algorithm_name>gets you to the right mode number.
Related
- John the Ripper — CPU-based alternative, faster for a quick check on a small hash file
- Windows hash dumping and pass-the-hash — source of the NTLM hashes cracked here
- Linux password hash dumping & cracking — source of the shadow hashes cracked here
- Mimikatz & Kiwi — another route to dumped NTLM hashes worth feeding into Hashcat