Hashcat Cheat Sheet
hashcat is the fastest password recovery tool supporting GPU acceleration. It supports hundreds of hash types and multiple attack modes for efficient cracking.
Basic Syntax
hashcat -m <hash_mode> -a <attack_mode> hashes.txt wordlist.txt
Common Hash Modes
0→ MD5100→ SHA11400→ SHA2561700→ SHA5121800→ SHA512crypt2500→ WPA/WPA23200→ bcrypt
List all:
hashcat -h | less
Attack Modes
0→ Straight (dictionary)1→ Combination3→ Brute-force / Mask6→ Hybrid Wordlist + Mask7→ Hybrid Mask + Wordlist
Dictionary Attack
hashcat -m 2500 -a 0 handshake.hccapx rockyou.txt
Mask Attack
hashcat -m 0 -a 3 hashes.txt ?l?l?l?l?d?d
Mask charset:
- ?l lowercase
- ?u uppercase
- ?d digits
- ?s symbols
Hybrid Attack
hashcat -m 0 -a 6 hashes.txt wordlist.txt ?d?d
Rule-Based Attack
hashcat -m 0 -a 0 hashes.txt wordlist.txt -r rules/best64.rule
Show Cracked Passwords
hashcat -m 0 hashes.txt --show
Resume Cracking
hashcat --restore
Benchmark
hashcat -b
Performance Tuning
hashcat -O -w 3 --force
-O→ optimized kernels-w 3→ workload profile
Warning
--force may cause instability.
Typical Workflow (WPA)
hcxtools → capture PMKID
hashcat -m 22000 capture.22000 wordlist.txt
Common Issues
Token length exception
Wrong hash mode selected.
Exhausted
Keyspace fully tested.
Related Tools
crunchaircrack-ngjohn the ripperhcxtools
Use Cases
- Wi-Fi password cracking
- Hash recovery
- Credential auditing
- Red team operations
Legal Notice
Danger
Use Hashcat only for authorized security testing.