Hashcat Cheat Sheet
GPU-accelerated offline password and hash recovery.
Overview
Hashcat is the standard tool for offline hash recovery. It supports hundreds of hash modes (NTLM, NetNTLMv2, bcrypt, WPA, Kerberos TGS, etc.) on CPU and GPU. Only crack hashes you are legally authorized to test (your lab, CTF, or explicit written scope).
Install
sudo apt install hashcat hashcat-utilshashcat -I # list OpenCL/CUDA deviceshashcat --help # modes and examplesEssential commands
Identify mode from hash format (or use hash-identifier)
hashcat -m 1000 hashes.txt rockyou.txt # NTLMhashcat -m 5600 hashes.txt wordlist.txt # NetNTLMv2hashcat -m 3200 hashes.txt wordlist.txt # bcryptShow cracked passwords
hashcat -m 1000 hashes.txt --showBenchmark a mode on your hardware
hashcat -m 1000 -bQuick one-liners
Crack NTLM hashes with rockyou
hashcat -m 1000 hashes.txt /usr/share/wordlists/rockyou.txtShow already cracked passwords
hashcat -m 1000 hashes.txt --showCrack NetNTLMv2 from responder capture
hashcat -m 5600 netntlm.txt /usr/share/wordlists/rockyou.txtBenchmark mode 1000 on your GPU
hashcat -m 1000 -bResume a long cracking session
hashcat --session lab01 --restoreCommon workflows
Dictionary attack —
hashcat -m 1000 ntlm_hashes.txt /usr/share/wordlists/rockyou.txthashcat -m 1000 ntlm_hashes.txt rockyou.txt -r rules/best64.rule8 chars: upper + lower + digit + special
hashcat -m 1000 hashes.txt -a 3 ?u?l?l?l?l?l?d?sCompany prefix + 4 digits
hashcat -m 1000 hashes.txt -a 3 'Corp?d?d?d?d'Combinator and hybrid —
hashcat -m 1000 hashes.txt -a 1 wordlist1.txt wordlist2.txthashcat -m 1000 hashes.txt -a 6 wordlist.txt ?d?d?d?dRestore long sessions —
hashcat -m 1000 hashes.txt rockyou.txt --session lab01hashcat --session lab01 --restoreExtract hashes from captures (hashcat-utils) —
cap2hccapx capture.pcap capture.hccapxhashcat -m 2500 capture.hccapx wordlist.txtFlags reference
-m | Hash mode |
|---|---|
-a | Attack mode (0=dict, 3=mask, 1=combinator) |
-r | Rules file |
-O | Optimized kernels (faster, max 31 char) |
-w | Workload profile 1–4 |
--show | Print cracked hashes |
--username | Show username with hash |
--force | Ignore warnings (lab only) |
--session | Named restore point |
Tips
- Run hashcat --example-hashes to match -m numbers to sample formats.
- Use -O on GPU for speed; drop it if passwords may exceed 31 characters.
- Split large jobs: dictionary first, then targeted masks from policy hints.
- Store wordlists and .potfile outside the repo; never commit real customer hashes.