CYBERSEC LAB — VIRTUAL PENETRATION TESTING
MODULE 8 — PASSWORD HASH CRACKING
Loading John the Ripper v1.9.0-jumbo-1...

🔓 ASSIGNMENT GOALS

Examine /etc/passwd and /etc/shadow on the target.
Combine the files using unshadow.
Identify the hash types in use.
Run a wordlist attack and crack the passwords.
Use john --show to display cracked credentials.
Complete the pentest report and submit.
PHASE 1 — EXAMINE TARGET FILES
💻
Terminal
📖
Reference Manual
📋
Pentest Report
📝
Notepad
⬡ KALI
Terminal
Reference
Report
Notepad
00:00:00
📋 BRIEFING
⚠ CLASSIFIED — PENTEST ENGAGEMENT

MISSION BRIEFING

Operation: Cracked Vault  |  Tool: John the Ripper
SCENARIO
During a red team engagement against Apex Systems Inc., you have gained read access to a Linux server and successfully exfiltrated the /etc/passwd and /etc/shadow files.

Your objective is to use John the Ripper to crack as many password hashes as possible, identify weak credentials, and produce a penetration test findings report documenting the vulnerability.

This simulates a real-world post-exploitation phase where cracked credentials could be used for lateral movement or privilege escalation.
OBJECTIVES
1
cat /etc/passwd and /etc/shadow — examine the exfiltrated files.
2
Run unshadow to combine passwd and shadow into a single crackable file.
3
Identify hash types using the $prefix in shadow entries. Consult the Reference Manual.
4
Run john with a wordlist and rules to crack the hashes.
5
Use john --show to display all cracked credentials.
6
Fill out the Pentest Report with your findings and submit.
TOOLS
💻
Terminal
john, unshadow, cat, ls, file, clear, help
📖
Reference Manual
Hash type chart, john syntax, shadow format guide
📋
Pentest Report
Structured findings form — submit your results here
Display Mode
TERMINAL — root@kali : ~/loot
John the Ripper Lab Terminal — Kali Linux 2024.1
Working directory: /root/loot (passwd, shadow files available)
 
Type 'help' for available commands.
 
root@kali:~/loot#
REFERENCE MANUAL — JOHN THE RIPPER
SHADOW FILE FORMAT
Each line in /etc/shadow follows this format:
username:$id$salt$hash:lastchg:min:max:warn:inactive:expire
HASH TYPE IDENTIFIERS ($id$)
PREFIXALGORITHMSTRENGTHJOHN FORMAT
$1$MD5cryptWeakmd5crypt
$2a$ / $2b$bcryptStrongbcrypt
$5$SHA-256cryptMediumsha256crypt
$6$SHA-512cryptStrongsha512crypt
$y$yescryptVery Strongyescrypt
(none)DES cryptVery Weakdescrypt
!Locked accountN/AN/A
*No passwordN/AN/A
WORKFLOW
# Step 1: Combine passwd + shadow
unshadow /etc/passwd /etc/shadow > shadow.txt

# Step 2: Wordlist attack
john shadow.txt --wordlist=/usr/share/wordlists/rockyou.txt

# Step 3: Rules-based attack
john shadow.txt --wordlist=/usr/share/wordlists/rockyou.txt --rules

# Step 4: Show cracked passwords
john shadow.txt --show

# Specify format explicitly
john shadow.txt --format=md5crypt --wordlist=...
JOHN SYNTAX REFERENCE
FLAGDESCRIPTION
--wordlist=FILEUse a wordlist for dictionary attack
--rulesApply mangling rules to wordlist words
--showDisplay all cracked passwords
--format=NAMEForce a specific hash format
--list=formatsList all supported hash formats
--incrementalBrute-force attack (slow)
--singleSingle crack mode (uses username etc.)
--statusShow cracking progress
RISK RATINGS
RATINGCRITERIA
CRITICALDES/MD5 hashes with dictionary passwords
HIGHSHA-512 with common/short passwords
MEDIUMStrong hashes, complex passwords
LOWbcrypt/yescrypt, long random passwords
PENTEST REPORT — PASSWORD AUDIT FINDINGS

PASSWORD AUDIT FINDINGS REPORT

APEX SYSTEMS INC. — RED TEAM ENGAGEMENT — FILL IN YOUR FINDINGS

SECTION 1 — CRACKED CREDENTIALS
SECTION 2 — RISK ASSESSMENT
NOTEPAD — notes.txt
File Edit Format View
Ln 1, Col 1UTF-8notes.txt