Challenge Cryptography +50 XP

Shadow Cracker

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! 💪

68% solve it 96 hackers played 1 flag Updated Oct 18, 2026 First blood Malekith
Password CrackingLinux SecurityJohn the RipperhashcatCryptography
Start Your Challenge
  1. 1Create a free account, then click "Start Lab"You'll get your own private machine with an IP address
  2. 2Explore the targetOpen the IP in your browser and look for vulnerabilities
  3. 3Find and submit flagsFlags are secret text strings hidden in the system - paste them below to score
  • ~1-2 min setup
  • Private instance

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
Contributors

Credited contributors

These hackers reported issues, improved content, and helped harden this page.