Hello again, future cyber hero! 👋
In Module 1, we learned what John the Ripper is and why it is useful. We talked about passwords, hashes, and attacks. Now it is time to do something real!
In this module, we will install John the Ripper on our computer. Then we will run our very first password test. Do not worry – we will go step by step, like building a Lego set. 🧱
By the end of this module, you will have John working on your computer and you will see it crack a test password. That will be so exciting!
After this module, you will be able to:
Remember Kofi from Module 1? He helped Grandma Ada open her treasure chest. Now, Kofi wants to become a master key-maker. He buys a brand new workshop with tools: hammers, files, and a special machine that can copy keys.
But first, he needs to set up the workshop. He unpacks the machine, plugs it in, and reads the manual. Then he tests it with a simple key. The machine works perfectly!
John the Ripper is like that machine. Before we can use it, we need to install it on our computer. Then we test it with a simple password to make sure everything works. That is what this module is all about.
Let’s set up our John workshop! 🔧
Definition: Installation means copying a program to your computer so you can use it.
Why it is important: Without installation, John is just a file that does nothing.
Simple explanation: It is like putting a game CD into your console and waiting for it to load.
Real‑life example: Installing a game like Minecraft on your tablet.
School example: Installing educational software on the school computer.
Home example: Installing a new app on your parent’s phone.
Nigerian example: Installing a banking app like Opay on your phone.
Illustration (ASCII):
💿 John Installer
|
v
📁 Copy files to computer
|
v
✅ John is ready to use!
Mini summary: Installation puts John on your computer.
Definition: Download means getting a file from the internet.
Why it is important: We must download from the official website to avoid viruses.
Simple explanation: Only take candy from a trusted shop, not from a stranger.
Real‑life example: Downloading the Chrome browser from Google.
School example: Downloading a textbook PDF from the school portal.
Home example: Downloading a movie from a safe service like Netflix.
Nigerian example: Downloading the NIBSS app from the official app store.
Illustration (ASCII):
🌐 Internet
|
v
🔗 Official website: openwall.com/john
|
v
⬇️ Download the right version
|
v
📁 Save the file on your computer
Mini summary: Always download John from openwall.com/john.
Definition: Windows is a popular operating system made by Microsoft.
Why it is important: Many people use Windows, so we need to know how to install John on it.
Simple explanation: Windows is like the “brain” of your computer.
Real‑life example: Most laptops in offices run Windows.
School example: Your school lab may have Windows computers.
Home example: Your family desktop might use Windows.
Nigerian example: Many cybercafes in Lagos use Windows.
Illustration (ASCII):
🪟 Windows PC
|
v
📥 Download john.exe
|
v
🖱️ Double‑click to install
|
v
✅ John is ready in C:\john
Mini summary: On Windows, you download an .exe file and run it.
Definition: Linux is a free operating system used by many tech people.
Why it is important: John works very well on Linux.
Simple explanation: Linux is like a different kind of brain for your computer.
Real‑life example: Many servers (big computers) run Linux.
School example: Some university labs use Linux.
Home example: Some tech‑savvy parents use Linux.
Nigerian example: Some Nigerian startups use Linux for their servers.
Illustration (ASCII):
🐧 Linux PC
|
v
📥 Download tar.gz file
|
v
⌨️ Use terminal commands
|
v
✅ John is ready in /usr/bin/john
Mini summary: On Linux, you use the terminal to install John.
Definition: Mac is an operating system made by Apple.
Why it is important: Many people use Macs, so we need to know how to install John there.
Simple explanation: Mac is the brain of Apple computers.
Real‑life example: Many graphic designers use Mac.
School example: Some schools have Mac labs.
Home example: Your friend might have a MacBook.
Nigerian example: Some Nigerian entrepreneurs use MacBooks.
Illustration (ASCII):
🍏 Mac
|
v
📥 Download the Mac version
|
v
⌨️ Use terminal (it is called Terminal)
|
v
✅ John is ready
Mini summary: On Mac, you also use the terminal.
Definition: A terminal is a window where you type commands to talk to the computer.
Why it is important: We need the terminal to run John.
Simple explanation: It is like a chat window with your computer.
Real‑life example: A pilot uses a microphone to talk to the control tower – the terminal is our microphone.
School example: Your teacher uses the command line to install software.
Home example: Your parent might use the terminal to fix a problem.
Nigerian example: A bank IT staff uses the terminal to manage servers.
Illustration (ASCII):
💻 Computer
|
v
🖥️ Terminal window (black screen with text)
+-----------------------------------+
| $ _ |
| |
+-----------------------------------+
Mini summary: The terminal is a text‑based way to control your computer.
Definition: Opening the terminal means launching the command window.
Why it is important: We cannot use John without the terminal.
Simple explanation: It’s like opening the door to the engine room.
Real‑life example: A car mechanic opens the bonnet to see the engine.
School example: You open the terminal to run a Python program.
Home example: You open it to check your Wi‑Fi settings.
Nigerian example: A technician opens the terminal to configure a router.
Illustration (ASCII):
🖥️ Windows: press Win + R, type "cmd"
🍏 Mac: press Cmd + Space, type "terminal"
🐧 Linux: press Ctrl + Alt + T
Mini summary: Every operating system has a way to open the terminal.
Definition: Navigating means moving between folders (directories) using commands.
Why it is important: We need to go to the folder where John is installed.
Simple explanation: Like walking through a building from room to room.
Real‑life example: You go to the kitchen to get a drink.
School example: You move from the classroom to the library.
Home example: You go to your room to get your backpack.
Nigerian example: You move from one shop to another in a market.
Illustration (ASCII):
📁 C:/
|
v
📁 john
|
v
📁 run
|
v
📄 john.exe
Mini summary: Use cd (change directory) to move around.
Definition: The john command is what we type to start the program.
Why it is important: This is the main way we use John.
Simple explanation: It’s like saying “John, start working!”
Real‑life example: You say “Alexa, play music.”
School example: You type “python” to start Python.
Home example: You say “OK Google, set a timer.”
Nigerian example: You type “java” to run a Java program.
Illustration (ASCII):
$ john --wordlist=wordlist.txt hashfile.txt
⬆️ ⬆️ ⬆️ ⬆️
| | | └─ target hash file
| | └─ wordlist to use
| └─ option
└─ command name
Mini summary: The john command is the way we tell John what to do.
Definition: A test hash is a fake hash we create to test John.
Why it is important: We use test hashes to learn without breaking real passwords.
Simple explanation: It’s like a practice exam before the real test.
Real‑life example: A pilot uses a flight simulator.
School example: You solve practice math problems.
Home example: You cook a small meal before making a big dinner.
Nigerian example: A tailor makes a sample before sewing your outfit.
Illustration (ASCII):
Password: “letmein”
|
v
🔐 Hash it
|
v
Hash: 7c6a180b36896a0a8c02787eeafb0e4c
Save this hash in a file called test.hash
Mini summary: Test hashes let us practise safely.
Definition: Running John means executing the program with a hash and a wordlist.
Why it is important: This is the moment we see John in action!
Simple explanation: Like starting a race car for the first time.
Real‑life example: You press the “start” button on a video game.
School example: You run a science experiment.
Home example: You start the washing machine.
Nigerian example: You start a generator.
Illustration (ASCII):
$ john --wordlist=rockyou.txt test.hash
🚀 John starts ...
Trying password: 123456
Trying password: password
Trying password: letmein
✅ Found: letmein
Mini summary: Running John is exciting – it will show us the password!
Definition: Output is what John shows on the screen.
Why it is important: The output tells us if John cracked the password.
Simple explanation: It’s like the result of a test.
Real‑life example: The score at the end of a game.
School example: The grade on your assignment.
Home example: The timer beeping when food is ready.
Nigerian example: The receipt you get after buying something.
Illustration (ASCII):
Output example:
+----------------------------------------+
| john --wordlist=wordlist.txt test.hash |
| Loaded 1 password hash |
| Press 'q' or Ctrl-C to abort |
| 0g 0:00:00:01 0.00% |
| letmein (user) |
| 1g 0:00:00:02 100% |
| Session completed |
+----------------------------------------+
Mini summary: John tells us the password if it finds it.
Definition: Stopping John means ending the program before it finishes.
Why it is important: Sometimes John takes too long, so we stop it.
Simple explanation: Like pausing a movie.
Real‑life example: You turn off a game when you need to do homework.
School example: You stop the timer during a test.
Home example: You turn off the TV.
Nigerian example: You turn off the generator when the power comes.
Illustration (ASCII):
To stop John:
Press Ctrl + C (hold Control and press C)
John will stop and show a summary.
Mini summary: Press Ctrl+C to stop John anytime.
Definition: Saving results means writing the cracked passwords to a file.
Why it is important: We might need the results later.
Simple explanation: Like writing notes in a notebook.
Real‑life example: You save a game progress.
School example: You save your essay.
Home example: You save a recipe.
Nigerian example: You save a transaction receipt.
Illustration (ASCII):
$ john --wordlist=wordlist.txt test.hash --format=raw-md5
$ john --show test.hash
user:letmein
1 password hash cracked, 0 left
Mini summary: Use --show to see saved results.
Definition: Cracking means finding a password from its hash.
Why it is important: It is the goal of using John.
Simple explanation: Like solving a puzzle!
Real‑life example: Winning a game.
School example: Answering a difficult question.
Home example: Finding a lost toy.
Nigerian example: Finding the right key to your gate.
Illustration (ASCII):
🎉🎉🎉 CONGRATULATIONS! 🎉🎉🎉
You cracked your first password!
Password was: letmein
You are now a real John user!
Mini summary: Cracking a password is a big achievement!
john command to run the program.cd to go to the folder.john --wordlist=wordlist.txt test.hash.john --show test.hash.Illustration (flowchart):
Start
|
v
Download John
|
v
Extract files
|
v
Open terminal
|
v
cd to John folder
|
v
Create test.hash
|
v
Run john command
|
v
John tries passwords
|
v
Password found? ── Yes ──> Show result ✅
| |
| No |
v v
John continues End (Success)
|
v
(Eventually stops)
john command with a wordlist and a hash file.john, not “jhon”.--wordlist=.
1. Download → 2. Extract → 3. Open terminal → 4. Run john
(5 mins) (1 min) (30 sec) (varies)
| Operating System | Download File | Installation Method | Terminal |
|---|---|---|---|
| Windows | .exe or .zip | Run .exe or extract .zip | Command Prompt (cmd) |
| Linux | .tar.gz | Extract and compile | Terminal (Ctrl+Alt+T) |
| Mac | .dmg or .tar.gz | Extract and run | Terminal (Cmd+Space) |
+-------------------+
| Start |
+-------------------+
|
v
+-------------------+
| Load hash file |
+-------------------+
|
v
+-------------------+
| Choose wordlist |
+-------------------+
|
v
+-------------------+
| Apply rules |
+-------------------+
|
v
+-------------------+
| Hash each guess |
+-------------------+
|
v
+-------------------+
| Compare hashes |
+-------------------+
|
v
+-----------+--------+
| Match? | |
+-----------+--------+
| Yes | No
v v
+-----------+ +-----------+
| Password | | Next word |
| found! ✅ | | |
+-----------+ +-----------+
| Option | What it does |
|---|---|
| --wordlist=file | Uses a dictionary file |
| --format=type | Specifies hash type (e.g., raw-md5) |
| --show | Shows cracked passwords |
| --session=name | Saves progress under a name |
| --restore=name | Restores a saved session |
Great job! You have completed the second module of the Certified John Ripper User course. Let’s recap:
You now have John installed and working. You are ready for the next step: cracking more complex passwords and using advanced features!
--wordlist option do?--show option used for?--wordlist option tells John which ________ to use.john --________ to see cracked passwords.--wordlist option is optional. (False – it is needed for dictionary attack)--show. (True)--wordlist specify?--show do?Match the term on the left with its description on the right.
| Term | Description |
|---|---|
| 1. Installation | A. A window for text commands |
| 2. Terminal | B. Putting a program on a computer |
| 3. john | C. A list of passwords |
| 4. Wordlist | D. The command to run John |
| 5. test.hash | E. A file with a practice hash |
Answers: 1‑B, 2‑A, 3‑D, 4‑C, 5‑E
--show option do?Scenario 1: Kofi has downloaded John from the official website. He extracts the files but cannot find the john command.
cd.)dir on Windows, ls on Linux/Mac)Scenario 2: Ada runs John with a wordlist but it takes a very long time. She wants to stop it.
--restore)Activity: In groups, each member installs John on their own computer (or a lab computer). Then, everyone runs the same test hash and shares the results. Discuss any differences.
Activity: Create a test hash with the password “johntest” and crack it using John. Write down the command you used and the output.
Project: Create a simple “cracking log” with the following:
Assignment: Install John on your computer. Then, create a test hash with the password “mypassword”. Crack it using John and submit a screenshot of the terminal showing the success.
Challenge: Create a test hash with a password that is not in the rockyou.txt wordlist. Then, try to crack it using John with incremental mode (brute‑force). See how long it takes. (Hint: use --incremental)
(Answers to Fill-in-the-Blank, True/False, and Multiple Choice are provided within each section.)
--show.In Module 3, we will dive deeper into wordlists and rules. We will learn how to create custom wordlists, understand rule syntax, and make John even more powerful. We will also explore different hash formats.
Make sure you have John installed and ready. Bring a curious mind and your notebook. See you in Module 3! 🚀
End of Module 2