Penetration-test write-ups for retired Hack The Box machines.
Each box is documented as a short report: enumeration, access, privilege escalation, and how a defender should have stopped it.
These are my notes from Hack The Box machines, rewritten as short penetration-test reports by Gabriele Hamil. The point is not only to show the exploit path but also the root cause and the remediation: what the defender should have done differently.
Important
Retired machines only. Hack The Box's rules forbid publishing write-ups, walkthroughs or spoilers for
active machines. This repository is limited to machines that have been retired. Flags (user.txt,
root.txt) are never included, and my own data (VPN address, local paths) is replaced by placeholders such
as $VPN_IP.
| Machine | OS | Difficulty | Key techniques |
|---|---|---|---|
| Cap | Linux | Easy | IDOR on packet captures, FTP/SSH password reuse, cap_setuid capability abuse |
| TwoMillion | Linux | Easy | Hidden invite API, IDOR privilege change, command injection, CVE-2023-0386 (OverlayFS) |
| Expressway | Linux | Easy | IKE/IPsec aggressive-mode PSK capture and crack, password reuse, sudo CVE-2025-32463 |
| Conversor | Linux | Easy | XSLT (EXSLT) arbitrary file write via cron, MD5 crack, needrestart CVE-2024-48990 |
| Editor | Linux | Easy | XWiki SSTI RCE (CVE-2025-24893), config-file creds, ndsudo PATH hijack (CVE-2024-28318) |
| Facts | Linux | Easy | Camaleon CMS LFI (CVE-2024-46987), SSH key exfiltration, sudo facter (GTFOBins) |
| MonitorsFour | Windows (WSL/Docker) | Easy | Type-juggling info leak, Cacti authenticated RCE, exposed Docker API breakout |
| Strutted | Linux | Medium | Apache Struts2 path-traversal upload RCE (CVE-2024-53677), sudo tcpdump (GTFOBins) |
| Eighteen | Windows | Easy | MSSQL impersonation, PBKDF2 crack, password spraying, dMSA abuse + DCSync |
Every write-up follows TEMPLATE.md and reads like a small penetration-test report:
- Summary — target, difficulty, and the path from first packet to root in two lines.
- Enumeration — services found and how.
- Initial access — the first foothold.
- Privilege escalation — from the foothold to root/Administrator.
- Root cause and remediation — why the box was vulnerable and what the defender should have done.
- Lessons learned — the one or two transferable ideas.
- Commands and output are in fenced code blocks. Output is trimmed to what matters.
$VPN_IPis the attacker (HTB VPN /tun0) address. Target addresses are the machine's own lab IP.- Flags are shown only as the command that reads them, never their value.
- CVE identifiers and tool names are given so each step can be verified independently.
MIT © Gabriele Hamil. The write-ups describe publicly documented, retired exercises for educational and defensive purposes.