This tutorial is for authorized security testing only: run John the Ripper against password hashes from your own accounts, your own test machines, or a deliberately vulnerable lab you control. Cracking hashes you are not authorized to touch is illegal, and this guide assumes every hash you feed it is yours. With that settled, John the Ripper is one of the most useful tools to understand on Parrot Linux. It takes password hashes and tries to recover the original passwords, which is exactly what an auditor does to prove that weak passwords on a system need replacing.
What John the Ripper Does
When a Linux system stores a password, it does not keep the password itself. It keeps a one-way hash — a scrambled fingerprint produced by a hashing algorithm. You cannot reverse a hash directly. Instead, a cracker guesses a password, hashes the guess with the same algorithm, and checks whether the result matches the stored hash. John the Ripper automates this at scale: it reads hashes, generates candidate passwords from wordlists or patterns, and reports any it recovers. On your own systems, that tells you which accounts would fall to an attacker who got hold of the hash file.
Parrot Linux is a good base for this work because it is Debian-based and plays well with standard security tooling. If you are new to running tools like this safely, set up an isolated environment first using our home pentesting lab guide so nothing you do touches a production machine.
Install John the Ripper on Parrot Linux
The Security Edition usually ships John the Ripper already. On the Home Edition, or if the command is missing, install it with apt:
sudo apt update
sudo apt install johnConfirm the install and check the build:
john --versionThe Debian package is the community “jumbo” build, which supports a wide range of hash formats beyond the classic Unix ones. You can list the formats it knows with john --list=formats, though the list is long.
Build a Safe Practice Hash
Before touching any real account, make a throwaway hash so you can see John work without risk. Create one with openssl:
openssl passwd -6 -salt test123 password1That prints a SHA-512 crypt hash of the word password1. Put it in a file in the format John expects, with a made-up username:
echo 'labuser:$6$test123$...' > practice.hashReplace the $6$... part with the full string openssl printed. You now have a target you created yourself, which is the only kind you should crack while learning.
Run Your First Crack
Point John at your practice file:
john practice.hashWith no options, John runs its default sequence: it tries single-crack mode (guesses based on the username), then a built-in wordlist, then incremental brute force. For a weak password like password1, it finishes almost instantly. See the result with:
john --show practice.hashOnce John cracks a hash, it stores the result in a file called john.pot in ~/.john/. Running the same file again will say the hashes are already cracked. To start over for testing, delete that pot file.
Crack With a Wordlist
Most real auditing uses a wordlist — a file of likely passwords, one per line. Parrot includes the classic rockyou list, often compressed. Decompress it first if needed:
sudo gunzip /usr/share/wordlists/rockyou.txt.gzThen run John in wordlist mode against your own hash file:
john --wordlist=/usr/share/wordlists/rockyou.txt practice.hashWordlist mode is faster and more realistic than brute force because real users pick real words. To make it stronger, add rules, which transform each word (adding numbers, swapping letters) to catch variations like Password1!:
john --wordlist=/usr/share/wordlists/rockyou.txt --rules practice.hashAuditing Your Own Linux Accounts
On a machine you own, John can audit the real account hashes, which live in /etc/shadow and are readable only by root. John ships a helper, unshadow, that combines the account list and the shadow file into one file John can read:
sudo unshadow /etc/passwd /etc/shadow > mysystem.hashThen audit it:
john --wordlist=/usr/share/wordlists/rockyou.txt mysystem.hashAny password John recovers is one you should change. When you are finished, delete mysystem.hash — a file of your real hashes should not sit around. This is the honest reason to run John on your own box: not to break in, but to find the weak account before someone else does. It pairs naturally with proper SSH key-based login, which removes passwords from the attack surface entirely.
Useful Options and Monitoring Progress
| Command | What it does |
|---|---|
john --show file.hash | Lists already-cracked passwords |
john --status | Shows progress of a running session |
john --format=NT file.hash | Forces a specific hash format |
john --restore | Resumes an interrupted session |
While John runs, press any key to print a status line, or run john --status in another terminal. Long jobs can be stopped with Ctrl+C and resumed later with --restore, because John saves its state continuously.
How This Fits With Other Tools
John the Ripper is CPU-based and excellent for learning how cracking works. For large jobs that lean on a graphics card, auditors often reach for a GPU tool instead; see our Hashcat on Parrot Linux guide for that side. If your goal is a structured practice environment rather than a single tool, the Parrot CTF setup guide points you at legal targets on Hack The Box and TryHackMe where password cracking is part of the challenge.
Understanding Hash Types You Will Meet
Part of auditing well is knowing what you are looking at. A hash file is only useful to John if John identifies the format correctly, and modern Linux systems do not all use the same one. The leading marker inside a crypt-style hash tells you the algorithm:
| Prefix | Algorithm | Notes |
|---|---|---|
$6$ | SHA-512 crypt | The common default on current Debian-based systems |
$5$ | SHA-256 crypt | Older default on some systems |
$y$ or $7$ | yescrypt / scrypt | Memory-hard, deliberately slow to crack |
$2y$ | bcrypt | Common for web application passwords |
Slow, memory-hard algorithms like yescrypt and bcrypt are a feature, not a flaw: they make each guess expensive, so a cracker gets far fewer tries per second. If John reports a tiny crack rate on such a hash, that is the algorithm doing its job. When John guesses the format wrong, force it with --format= and the name from john --list=formats.
Reading What a Crack Result Tells You
The point of an audit is not the list of cracked passwords by itself — it is what that list says about your habits and your users. If John recovers a password in seconds from a wordlist, that password was never going to survive a real attacker who stole the hash file. If John runs for hours and finds nothing, your passwords are doing their job. Treat every recovered password as a to-do item: change it, and if several users share a weak pattern, that is a policy problem worth fixing across the board. Keeping passwords out of reach entirely, by moving services to key-based access where possible, is the stronger long-term answer.
Keeping Your Audits Responsible
Because John is so effective, it is worth being deliberate about how you use it. Keep every exported hash file in a folder you control, delete it the moment the audit is finished, and never move another person’s hashes onto your machine — even a colleague’s — without written permission. If you practise on deliberately vulnerable targets, make sure they are ones built for it, such as the hashes you create yourself or the lab boxes from a legal CTF platform. The habit of asking “am I authorized to crack this?” before every run is what separates an auditor from an intruder, and it is the single rule that keeps this skill useful rather than harmful.
Frequently Asked Questions
Is it legal to use John the Ripper?
The tool is legal. Using it on hashes you do not own or have written permission to test is not. Stick to your own accounts and lab targets.
Why did John not crack my password?
A strong password that is long and not based on a dictionary word may not appear in any wordlist. That is the point — if John cannot find it quickly, it is a reasonable password.
Where does John store cracked passwords?
In ~/.john/john.pot. Delete that file to re-test a hash from scratch, and remove any hash files you exported when you are done.