Lab Icon

Shadow Cracker

🔓 Can you crack the shadow and reveal the secrets?

Challenge Updated 21 Jun 2026 Solution (Pro)
Password Cracking Linux Security John the Ripper hashcat Cryptography

A Linux shadow file has fallen into your hands during a security assessment. Hidden within the cryptographic hashes lies a secret waiting to be uncovered. Armed with the right tools and techniques, can you break through the encryption and recover the hidden credentials? Time to put your password cracking skills to the test! 💪

1
Flags
50
XP
64%
Success Rate

Password cracking is a fundamental skill in cybersecurity, essential for penetration testers, forensic analysts, and security auditors. Linux systems store password hashes in the /etc/shadow file, a critical system file that is a primary target during post-exploitation. Understanding how to crack these hashes - and why certain passwords are vulnerable - is key to assessing the strength of an organization's credential policies.

Understanding the Linux Shadow File

The /etc/shadow file stores hashed passwords for all user accounts on a Linux system. Each line contains fields separated by colons, including the username, the hashed password, and various password aging parameters. The hash field itself contains three components separated by dollar signs: the hash algorithm identifier ($6$ for SHA-512, $5$ for SHA-256, $1$ for MD5), the salt (a random string that ensures identical passwords produce different hashes), and the resulting hash value. This hashcat tutorial knowledge is essential for understanding which cracking approach to use.

Password Cracking Tools and Techniques

Two tools dominate the password cracking landscape: John the Ripper and hashcat. John the Ripper excels at auto-detecting hash formats and running intelligent wordlist attacks with built-in mangling rules. A hashcat tutorial reveals its strength in GPU-accelerated cracking, supporting hundreds of hash types with powerful rule engines and mask attacks. Both tools support dictionary attacks (trying words from a wordlist like rockyou.txt), rule-based attacks (applying transformations like capitalization and number appending), and brute-force attacks (trying every possible combination up to a specified length).

Real-World Implications

Password cracking during penetration tests regularly reveals weak credentials that could lead to unauthorized access. Common findings include dictionary words, patterns like "Password1!", and reused credentials. The speed at which modern GPUs can process hash computations makes weak passwords practically equivalent to no password at all. Security professionals must understand these techniques to provide actionable recommendations for password policies, including minimum length requirements, complexity rules, and the adoption of password managers and multi-factor authentication.

What You Will Learn

  • Understand the Linux /etc/shadow file format and hash types (SHA-512, SHA-256, MD5)
  • Learn to use John the Ripper and hashcat for password hash cracking
  • Practice dictionary attacks using common wordlists like rockyou.txt
  • Study different cracking strategies including rule-based and brute-force approaches
  • Develop skills for assessing password policy effectiveness in security audits

Prerequisites

Basic Linux command-line skills Understanding of hashing concepts Familiarity with common security tools

Ready to hack this lab?

Create a free account and start practicing cybersecurity hands-on.

Start Hacking - It's Free
Start Your Challenge
~1-2 min setup
Dedicated server
Private instance
Standard power
New here? Here's what to do
1
Click "Start Lab" above You'll get your own private machine with an IP address
2
Explore the target Open the IP in your browser and look for vulnerabilities
3
Find and submit flags Flags are secret text strings hidden in the system - paste them below to score

Ready to hack this lab?

Create a free account to start your own dedicated server, submit flags, and earn XP on the leaderboard.

Start Hacking Free
13,000+ Hackers 100+ Labs & Courses Free
Start Hacking Free