Cybersecurity-Mastery

Home › Cheatsheets › Hashcat and John Cheatsheet

Hashcat and John Cheatsheet

Modes, masks, rules and common hash formats. Printable: use your browser's Print → Save as PDF.

Domain: Cryptography · Last updated 2026-08-12

Quick reference

This cheatsheet is a fast recall aid, not a tutorial — learn the concepts in the Manual, then keep this beside you while you work.

Attack modes

ModeMeaning
-a 0Straight (wordlist)
-a 1Combination (two lists)
-a 3Brute-force / mask
-a 6Wordlist + mask
-a 7Mask + wordlist

Common hash types (-m)

-mHash
0MD5
100SHA1
1400SHA-256
1800sha512crypt ($6$)
3200bcrypt ($2*$)
1000NTLM
5600NetNTLMv2
13100Kerberoast (TGS-REP)
18200AS-REP
22000WPA-PBKDF2 (PMKID/handshake)

Recipes

bash
hashcat -m 1000 hashes.txt rockyou.txt                     # NTLM + wordlist
hashcat -m 0 hashes.txt rockyou.txt -r rules/best64.rule   # with rules
hashcat -m 3200 hash.txt -a 3 ?l?l?l?l?l?d?d               # bcrypt mask
hashcat -m 22000 hs.hc22000 wordlist.txt                   # WPA
hashcat --show -m 1000 hashes.txt                          # show cracked

Mask charsets: ?l a-z · ?u A-Z · ?d 0-9 · ?s symbols · ?a all · ?b 0x00-0xff.

John equivalent

john --format=NT --wordlist=rockyou.txt hashes.txt · john --show hashes.txt

Cybersecurity-Mastery — interactive security learning · runs locally