Password Cracking and Brute Force: practice machines and key commands
By Daniel Dayan ยท Updated
Many boxes fall to a password that is weak, default or reused. Offline cracking turns a captured hash into plaintext: identify the hash type first, then choose the matching hashcat mode or John format, starting with rockyou and a rules file before heavier masks. Online attacks with Hydra or NetExec are slower and noisier, so use targeted username lists and watch for lockouts. Always try default credentials for the product you identified, and test every password you find against every service and user, because reuse is common. Build custom wordlists from site content with a tool like cewl when generic lists fail. Keep a running list of credentials in your notes. The machines below involve cracking or guessing a secret to progress.
Key commands
Placeholders in braces, such as {TARGET_IP}, are values you fill in for your target.
Hashcat NTLM Hashes (Mode 1000)
High-speed GPU cracking of Windows NTLM hashes dumped from SAM or NTDS.dit.
hashcat -m 1000 ntlm.hashes /usr/share/wordlists/rockyou.txt -OHashcat Linux /etc/shadow Hashes (Mode 1800)
Crack SHA512crypt ($6$) passwords dumped from Linux /etc/shadow.
hashcat -m 1800 shadow.hashes /usr/share/wordlists/rockyou.txt -OHydra Multi-Threaded SSH Brute Force
Brute-force SSH service credentials using rockyou password list.
hydra -l {USER} -P /usr/share/wordlists/rockyou.txt {TARGET_IP} ssh -t 4Hydra Web Login Form Brute Force
Target HTTP POST web login endpoint with username and password dictionary.
hydra -l admin -P /usr/share/wordlists/rockyou.txt {TARGET_IP} http-post-form "/login:username=^USER^&password=^PASS^:F=Invalid credentials"JWT Secret Key HMAC-SHA256 Cracking
Crack HS256 signed JSON Web Token secrets offline using rockyou wordlist.
hashcat -m 16500 jwt.txt /usr/share/wordlists/rockyou.txt
Keep going
- Methodology: Phase 04: Foothold Execution & Initial Access
- Cheatsheet: Exploitation & Payloads
Password Cracking and Brute Force machines (37)
16 of these are machines I solved myself and are listed first within each difficulty. 30 Linux, 7 Windows.
Listed when a machine has a catalog tag that is one of: dictionary attack, no auth, admin bypass, authentication bypass, hashcat, john, password cracking, hash cracking, hydra, brute force, bruteforce, default credentials, credential reuse, wordlist; or a tag that contains the word hydra, john or hashcat. Capital letters, hyphens and underscores are ignored, and the tags that matched come first in each row. "Editor-mapped" marks machines assigned to this topic by hand because none of their tags match.
Password Cracking and Brute Force at a glance
- By platform: 19 Hack The Box, 18 TryHackMe.
- On these practice lists: OSCP (8), HTB Starting Point (7), CPTS (3), OSEP (3), HTB Active Directory (2), Unofficial IppSec CPTS (2).
- Tags that most often appear alongside it: nmap (6), gobuster (3), HTTP (2), SQLi (2), Steganography (2).
- Solved by me, with a page here: Crocodile (Linux Very Easy), Explosion (Windows Very Easy), Ignition (Linux Very Easy), Meow (Linux Very Easy), Pennyworth (Linux Very Easy), Sequel (Linux Very Easy), Basic Pentesting (Linux Easy), Bounty Hacker (Linux Easy).
Very Easy (7)
| Machine | Platform | OS |
|---|---|---|
| Crocodile | HTB | Linux |
| Explosion | HTB | Windows |
| Ignition | HTB | Linux |
| Meow | HTB | Linux |
| Pennyworth | HTB | Linux |
| Sequel | HTB | Linux |
| Guard | HTB | Linux |
Easy (20)
| Machine | Platform | OS |
|---|---|---|
| Basic Pentesting | THM | Linux |
| Bounty Hacker | THM | Linux |
| CyberHeroes | THM | Linux |
| Jerry IppSec | HTB | Windows |
| Mongod | HTB | Linux |
| Neighbour | THM | Linux |
| Preignition | HTB | Linux |
| Synced | HTB | Linux |
| W1seGuy | THM | Linux |
| Agent Sudo | THM | Linux |
| Anonforce | THM | Linux |
| Brooklyn Nine Nine | THM | Linux |
| Crack the hash | THM | Linux |
| Cyborg | THM | Linux |
| GamingServer | THM | Linux |
| Library | THM | Linux |
| Net Sec Challenge | THM | Linux |
| Perfection IppSec | HTB | Linux |
| ToolsRus | THM | Linux |
| UnderPass IppSec | HTB | Linux |
Medium (3)
| Machine | Platform | OS |
|---|---|---|
| Mr Robot CTF | THM | Linux |
| HackPark | THM | Windows |
| Smol | THM | Linux |
Hard (4)
| Machine | Platform | OS |
|---|---|---|
| Control IppSec | HTB | Windows |
| Flight | HTB | Windows |
| Reel2 IppSec | HTB | Windows |
| Year of the Pig | THM | Linux |
Insane (3)
| Machine | Platform | OS |
|---|---|---|
| Dyplesher IppSec | HTB | Linux |
| Multimaster IppSec | HTB | Windows |
| Response IppSec | HTB | Linux |
Related techniques
Related guides: TJ Null OSCP list, OSCP exam scoring and time budget, OSCP vs CPTS, OSCP report template.
Practise it, then track it.
Log every box and the commands you used in ZeroBox.