Hash Cracking
Challenge Gallery
Quick Reference
| Hash Type | Length | Example Prefix |
|---|---|---|
| MD5 | 32 hex chars | (no prefix) |
| SHA-1 | 40 hex chars | (no prefix) |
| SHA-256 | 64 hex chars | (no prefix) |
| NTLM | LM:NT format | aad3b435...: |
| Linux SHA-512 | $6$salt$hash |
$6$ |
| Linux MD5 | $1$salt$hash |
$1$ |
| bcrypt | 60 chars | $2b$ |
Cracking Commands
# John the Ripper — MD5 with wordlist
john --format=raw-md5 --wordlist=rockyou.txt hashes.txt
# John — NTLM
john --format=nt --wordlist=rockyou.txt ntlm.txt
# John — show cracked
john --show hashes.txt
# Hashcat — MD5 with wordlist
hashcat -m 0 hashes.txt rockyou.txt
# Hashcat — mask attack (pattern)
hashcat -m 0 -a 3 hashes.txt "SKY-?u?u?u?u-?d?d?d?d"
# Extract PDF hash
pdf2john encrypted.pdf > pdf_hash.txt