Password Cracking
Identify hashes, pick a wordlist, and see why slow salted hashes win.
When attackers steal a password database, they crack it offline. Understanding how shows exactly why modern password storage looks the way it does.
1
Identifying hashes
Many password hashes announce their algorithm with a prefix:
Prefix Algorithm $1$md5crypt $2b$bcrypt $6$sha512crypt (common in /etc/shadow) $argon2id$Argon2id Bare hex strings are usually plain (fast, unsalted) hashes: 32 characters suggests MD5, 40 suggests SHA-1.
2
Attacks and tools
- Dictionary attack: try every word in a list. The classic list is rockyou.txt, from a 2009 breach of 32 million plaintext passwords.
- Rules: mutate words (
passwordโP@ssw0rd1!). - Brute force: try every combination up to a length. Only feasible for short passwords.
Tools: hashcat (GPU, very fast;
-m 0is MD5) and John the Ripper.hashcat -m 0 hashes.txt rockyou.txtThis SHA-1 hash is in every wordlist:
5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8.
โ Report a problem with this room
Log in to report a problem.