Password cracking · Open source (GNU GPLv2); community-enhanced jumbo build

John the Ripper

John the Ripper is a fast, open-source password-cracking tool used to test the strength of password hashes. Given a file of hashes, it attempts to recover the plaintext passwords using dictionary, rule-based, incremental (brute-force) and mask attacks. Its community jumbo edition supports hundreds of hash and file formats. Security teams and auditors use it to find weak passwords before attackers do; it runs primarily on CPU.

Last updated: 6 August 2026

What John the Ripper is actually used for

John is used to audit password strength: extract hashes from a system, then see how many John can crack and how quickly. An auditor runs unshadow on a Linux box to combine passwd and shadow files, then cracks the result against a wordlist to flag users with weak passwords. Helper tools like zip2john, rar2john and ssh2john turn encrypted files and keys into crackable hashes. It excels at CPU-based cracking and rule mangling, and is a staple in CTFs and internal password audits.

Platforms

Linux · Windows · macOS · BSD

Licence

Open source (GNU GPLv2); community-enhanced jumbo build

Commands worth knowing

john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt

Run a straight dictionary attack against a hash file.

unshadow /etc/passwd /etc/shadow > mypasswd.txt

Merge Linux passwd and shadow files into a crackable format.

john --format=raw-md5 hashes.txt

Force a specific hash format when autodetection is ambiguous.

john --wordlist=rockyou.txt --rules hashes.txt

Apply mangling rules to a wordlist to generate variations.

zip2john protected.zip > zip.hash

Extract a crackable hash from a password-protected ZIP file.

john --show hashes.txt

Display passwords already cracked and stored for this hash file.

john --incremental hashes.txt

Run pure brute-force mode when wordlists are exhausted.

The legal line

Only crack hashes you are authorised to test, such as your own systems or hashes provided within a scoped engagement. Obtaining or cracking other people's password hashes without authorisation is an offence under the IT Act 2000. Handle recovered credentials as sensitive data and destroy them when the engagement ends.

What John the Ripper is bad at

John is primarily CPU-bound, so it is much slower than GPU tools like Hashcat for large or slow hashes. Strong, long, random passwords and heavy algorithms (bcrypt, Argon2) may be infeasible to crack. It only recovers passwords weak enough to appear in a wordlist or reachable by brute force in available time.

Alternatives, and when to pick them

ToolPick it when
HashcatYou want GPU-accelerated cracking for far higher speed on large hash sets.
HydraYou are attacking a live network login rather than offline hashes.
Cain (legacy)You are working in older Windows environments (largely superseded now).
ophcrackYou want rainbow-table cracking of Windows LM/NTLM hashes with a GUI.
CeWL + rulesYou need to build a custom wordlist from a target's own website first.

Where we teach it

Ethical Hacking Course (6 months) — password attacks and hashing module

We are not affiliated with, endorsed by, or a reseller for the vendors of any tool on this site.

John the Ripper — FAQs

What is the difference between John the Ripper and Hashcat?

Both crack password hashes. John is CPU-focused, autodetects many formats and has excellent rule engines; Hashcat is GPU-focused and much faster on large sets. Many testers use John for convenience and Hashcat when raw speed matters.

Can John the Ripper crack any password?

No. It recovers passwords that are weak, common or short enough to be found in a wordlist or by brute force within available time. Long, random passwords with strong hashing can be practically uncrackable.

How do I crack a zip file password with John?

Run zip2john on the archive to produce a hash, then feed that hash to John with a wordlist. The same idea applies to rar2john, ssh2john and similar helper tools for other file types.

John the Ripper legal hai ya nahi?

Tool khud legal hai aur password audit ke liye banaya gaya hai. Sirf apne ya authorised systems ke hashes crack karein; kisi aur ke passwords bina permission crack karna IT Act ke tahat jurm hai.

Learn John the Ripper properly, in a legal lab

Free counselling call. We will tell you honestly whether a full course is worth it for what you actually want to do.

Call +91 75175 72000