HASH CRACKING — RECOVERED CREDENTIALS
During the web server compromise you obtained read access to /etc/shadow and exfiltrated a database dump containing password hashes. Use John the Ripper to crack as many as possible and document the recovered credentials.
| File | Contents |
|---|---|
| shadow.txt | /etc/shadow — 4 Linux users |
| db_hashes.txt | Database dump — 4 MD5 hashes |
| bcrypt.txt | Single bcrypt hash — admin account |
The standard /usr/share/wordlists/rockyou.txt is available. John auto-detects hash formats — you can also specify with --format= if needed.
| Flag | Description |
|---|---|
| --wordlist=FILE | Use a wordlist for dictionary attack |
| --format=TYPE | Force a specific hash format |
| --rules | Apply mangling rules to wordlist |
| --show | Show previously cracked passwords |
| --list=formats | List all supported formats |
| --incremental | Brute force all combinations |
| --single | Single crack mode (uses username info) |
| Format | Example prefix |
|---|---|
| sha512crypt | $6$... |
| sha256crypt | $5$... |
| md5crypt | $1$... |
| bcrypt | $2b$... or $2a$... |
| md5 | 32 hex chars |
| ntlm | 32 hex chars (Windows) |