Concepts / Passwords and hashes

Passwords and hashes

Password cracking

Also called john the ripper, offline cracking, gpg2john, zip2john

Recovering a password offline by hashing guesses from a wordlist (optionally mangled by rules) until one matches.

Cracking is guessing, hashed the same way
Cracking is guessing, hashed the same way

A hash cannot be run backwards. The cracker hashes each guess with the same function and compares; a rule turns a plain word into the pattern people really use.

Password cracking recovers a password from its stolen hash by guessing offline. A hash cannot be reversed, so a cracker (john the ripper, hashcat) hashes each word of a [[wordlist-profiling|wordlist]] the same way and compares; rules reshape words, zephyr into Zephyr2019!. Hashcat tries only the mode you name (-m 0 is MD5), so identify the hash first with hashid. The defence: a slow hash and a long random password.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab