Skip to content
Home

John the Ripper: CPU-based hash cracking

Format-aware password cracking for NTLM and Linux shadow hashes.

bash·1 min read··INE Certification

John’s a CPU cracker rather than GPU-accelerated like Hashcat, but its format auto-detection and simpler syntax make it the faster choice for a quick check against a small hash file.

Identify the format

john --list=formats                # see every hash format John recognizes
john --list=formats | grep NT      # grepping to NTLM-related formats

Crack

john --format=NT hashes.txt --wordlist=/usr/share/wordlists/rockyou.txt          # Windows NTLM
john --format=sha512crypt linux.hashes.txt --wordlist=/usr/share/wordlists/rockyou.txt   # Linux shadow (sha512crypt)

gzip -d /usr/share/wordlists/rockyou.txt.gz   # rockyou often ships gzipped, decompress it first

Same underlying idea as Hashcat: you need the right --format for the hash type or it’ll fail/produce nothing.

John vs Hashcat

John the RipperHashcat
CrackingCPUGPU-accelerated
Best forQuick check on a handful of hashesLarger sets or slower algorithms
SyntaxSimpler, auto-detects moreNeeds the exact -m mode number