How to use John the Ripper

Hackbydoing Academy tool guide · Password attacks & hashing · free, no login

What John the Ripper is, in plain words

John the Ripper is a password-cracking tool that tries words from a list against scrambled password codes (hashes) using your normal processor.

A working john command

john --wordlist=rockyou.txt hashes.txt

Tries every word in rockyou.txt as the password for the hashes in hashes.txt and saves anything it cracks.

Every piece of the command, explained

--format=NTThe piece after the equals sign tells John exactly which kind of hash the file holds; NT means the Windows NTLM hash type, so it does not have to guess.
--format=raw-md5The piece after the equals sign tells John the hashes are plain MD5, the fast unsalted kind, so it uses the right cracking method.
--rulesAlso twist each wordlist word into common variants (adding numbers or symbols, swapping letters) before trying it, which cracks more passwords but takes longer.
--showPrints the passwords John has already cracked for the hash file, instead of starting a new cracking run.
--wordlist=/usr/share/wordlists/rockyou.txtSame idea with a full path: the piece after the equals sign is the rockyou wordlist, a famous list of real leaked passwords.
--wordlist=rockyou.txtThe piece after the equals sign is the wordlist file to try; the equals-sign form matters, because writing it with a space makes John treat the list as another hash file.
--wordlist=wordlist.txtSame as above: the piece after the equals sign is the wordlist file whose words John tries one by one.

Use it the legal way

Only run john on systems you own or have explicit, written permission to test — at work that means a signed engagement, at home that means your own lab. Inside Hackbydoing Academy you practice on simulated networks and lab machines built for exactly this, where breaking things is the lesson and no one else's systems are involved. Learning how a tool works also teaches you what it looks like from the defender's chair: the logs it leaves, the traffic it makes, and the settings that shut it down.

✦ Practice John the Ripper hands-on in a guided lab

Reading about john is step one. In the Academy you run it yourself, step by step, in guided labs on simulated networks — 185 rooms covering attack and defense, from your first scan to full operations, with a defender's debrief at the end of every room. Founding membership is $9.99/mo for the first 500 members.

Join Hackbydoing Academy →

Related tool guides

Free from the Hackbydoing Academy — learn cybersecurity by doing: real tools, guided labs, attack and defense, on simulated networks. More free material: Tool Guides index · Free Downloads Library · Hackbydoing Academy · Print this page (Ctrl/Cmd+P) for a clean paper copy.