# Hack The Box Writeups - The Ultimate HTB Resource
> The most comprehensive collection of **Hack The Box writeups**, **walkthroughs**, and **cheatsheets** on GitHub. 500+ machines, 400+ challenges, ProLabs, Sherlocks (DFIR), CTF events, penetration testing methodology, and OSCP/CPTS certification prep - all in one place.
```
___ ___ ___________ __ __ .__ __
/ | \ \__ ___/ / \ / \________|__|/ |_ ____ __ ________ ______
/ ~ \ | | \ \/\/ /\_ __ \| \ __\/ __ \| | \____ \/ ___/
\ Y / | | \ / | | \/| || | \ ___/| | / |_> >___ \
\___|_ / |____| \__/\ / |__| |__||__| \___ >____/| __/____ >
\/ \/ \/ |__| \/
```
[](https://awesome.re)
[](https://github.com/momenbasel/htb-writeups/stargazers)
[](https://github.com/momenbasel/htb-writeups/network/members)
[](https://github.com/momenbasel/htb-writeups/graphs/contributors)
[](LICENSE)
[](https://github.com/momenbasel/htb-writeups/commits/main)
**Why this repo?** Unlike scattered blog posts and single-author collections, this is a **structured, searchable index** of the entire HTB ecosystem - machines from 2017 to 2026, every CTF event, every challenge category, every ProLab - cross-referenced by technique, difficulty, OS, and certification relevance. Whether you're preparing for **OSCP**, **CPTS**, **CRTO**, or just sharpening your skills, start here.
> **[Browse the site](https://momenbasel.github.io/htb-writeups/)** for the best experience - interactive tools, search, and dark theme.
---
## Interactive Tools
| | Tool | Description |
|--|------|-------------|
| **[Machine Finder](https://momenbasel.github.io/htb-writeups/finder/)** | Search & Filter | Find machines by difficulty, OS, technique, CVE, or certification. Table and card views with real-time filtering. |
| **[Knowledge Graph](https://momenbasel.github.io/htb-writeups/graph/)** | Visual Explorer | Interactive D3.js force-directed graph mapping 70+ machines to 40+ techniques and 5 certifications. |
| **[Attack Paths](https://momenbasel.github.io/htb-writeups/attack-paths/)** | Flowcharts | Mermaid diagrams showing complete attack chains for 25+ machines - from recon to root. |
| **[Skill Trees](https://momenbasel.github.io/htb-writeups/skill-trees/)** | Progression Maps | Visual learning paths for AD attacks, web exploitation, Linux/Windows privesc, and cert preparation. |
---
## What's Inside
| Section | Description | Count |
|---------|-------------|-------|
| [Machines](#machines) | Boot2root walkthroughs (Easy to Insane) | 300+ |
| [Challenges](#challenges) | CTF-style challenges across 12 categories | 400+ |
| [ProLabs](#prolabs) | Enterprise-grade lab walkthroughs with network topology diagrams | 6 |
| [Sherlocks](#sherlocks) | DFIR & Blue Team investigations | 70+ |
| [CTF Events](#ctf-events) | Official HTB CTF competition writeups | 14 events |
| [Endgames](#endgames) | Multi-machine scenario walkthroughs | 5 |
| [Fortresses](#fortresses) | Multi-flag single-host challenges | 6 |
| [Resources](#resources) | Tools, cheatsheets, cert prep, methodology | 10 guides |
---
## Machines
Writeups for retired HTB machines organized by difficulty. Each writeup includes enumeration, exploitation, and privilege escalation steps with full command output.
### By Difficulty
| Difficulty | Path | Machines |
|------------|------|----------|
| Easy | [`machines/easy/`](machines/easy/) | 132+ |
| Medium | [`machines/medium/`](machines/medium/) | 136+ |
| Hard | [`machines/hard/`](machines/hard/) | 70+ |
| Insane | [`machines/insane/`](machines/insane/) | 50+ |
### Recently Retired (2025-2026)
| Machine | OS | Difficulty | Key Techniques | Date |
|---------|----|------------|----------------|------|
| [MonitorsFour](machines/insane/MonitorsFour/) | Windows | Insane | PHP Type Juggling, Cacti CVE, Docker API Escape | May 2026 |
| [Pterodactyl](machines/insane/Pterodactyl/) | openSUSE | Insane | Pterodactyl Panel CVE-2025-49132, PEAR pearcmd LFI, Polkit | May 2026 |
| [Helix](machines/medium/Helix/) | Linux | Medium | Apache NiFi ExecuteSQL + H2 Java Alias RCE | May 2026 |
| [Overwatch](https://0xdf.gitlab.io/2026/05/09/htb-overwatch.html) | Windows | Insane | .NET Reversing, WCF Service Injection, DNS | May 2026 |
| [Sorcery](machines/insane/Sorcery/) | Linux | Insane | Cypher Injection, WebAuthn XSS, Kafka, FreeIPA | Apr 2026 |
| [PingPong](machines/hard/PingPong/) | Windows | Hard | Multi-Forest AD, MSSQL Delegation, ADCS | Apr 2026 |
| [AirTouch](machines/hard/AirTouch/) | Linux | Hard | 802.11 WPA2 Crack, Evil Twin, PEAP-MSCHAPv2 | Apr 2026 |
| [Eighteen](machines/hard/Eighteen/) | Windows | Hard | Win Server 2025, MSSQL Impersonation, Bad Successor dMSA | Apr 2026 |
| [DarkZero](https://0xdf.gitlab.io/2026/04/04/htb-darkzero.html) | Windows | Hard | Cross-Forest Trust, AD Abuse | Apr 2026 |
| [Pirate](machines/hard/Pirate/) | Windows | Hard | Pre2k, gMSA, PetitPotam, RBCD, S4U SPN Jack | Feb 2026 |
| [VariaType](machines/medium/VariaType/) | Linux | Medium | fontTools CVE-2025-66034, FontForge CVE-2024-25082 | Mar 2026 |
| [Interpreter](machines/medium/Interpreter/) | Linux | Medium | Mirth Connect CVE-2023-43208, Python eval() | Feb 2026 |
| [Kobold](machines/easy/Kobold/) | Linux | Easy | MCPJam CVE-2026-23744, Docker Group | Mar 2026 |
| [Facts](machines/easy/Facts/) | Linux | Easy | Camaleon CMS IDOR + Path Traversal + Facter Sudo | Jan 2026 |
| [Code](machines/easy/Code/) | Linux | Easy | Python Sandbox Bypass, Backy Sudo | Aug 2025 |
| [Cobblestone](machines/insane/Cobblestone/) | Linux | Insane | Second-Order SQLi, Twig SSTI, Cobbler XMLRPC | 2025 |
| [Snapped](https://0xdf.gitlab.io/2026/04/01/htb-snapped.html) | Linux | Hard | Nginx UI RCE, Static Site Exploitation | Mar 2026 |
| [Browsed](https://0xdf.gitlab.io/2026/03/28/htb-browsed.html) | Linux | Medium | Browser Extension Exploitation, Headless Chrome | Mar 2026 |
| [Previous](https://0xdf.gitlab.io/2026/01/10/htb-previous.html) | Linux | Medium | NextJS Exploitation, Framework Abuse | Jan 2026 |
| [Retire](machines/hard/) | Windows | Hard | Active Directory, Kerberos Abuse | Jan 2026 |
| [Fries](machines/hard/) | Linux | Hard | Web Exploitation, Custom Exploitation | Nov 2025 |
| [NanoCorp](machines/hard/) | Linux | Hard | Custom Protocol, Binary Analysis | Nov 2025 |
| [Hercules](machines/insane/) | Linux | Insane | Multi-Stage Exploitation | Oct 2025 |
| [Signed](https://0xdf.gitlab.io/2026/02/07/htb-signed.html) | Windows | Medium | Code Signing Bypass, Certificate Abuse | Oct 2025 |
| [University](https://0xdf.gitlab.io/2025/08/09/htb-university.html) | Windows | Insane | Multi-Vector Attack, Complex Chain | Aug 2025 |
| [Dog](https://0xdf.gitlab.io/2025/07/12/htb-dog.html) | Linux | Easy | Backdrop CMS, Web Exploitation | Jul 2025 |
| [Mirage](https://0xdf.gitlab.io/2025/11/22/htb-mirage.html) | Windows | Hard | Active Directory, ADCS | Jul 2025 |
| [Voleur](https://0xdf.gitlab.io/2025/11/01/htb-voleur.html) | Windows | Medium | Data Exfiltration, Custom Exploitation | Jul 2025 |
| [RustyKey](https://0xdf.gitlab.io/2025/11/08/htb-rustykey.html) | Windows | Hard | Rust Binary Exploitation | Jun 2025 |
| [TombWatcher](https://0xdf.gitlab.io/2025/10/11/htb-tombwatcher.html) | Windows | Medium | Custom Service Exploitation | Jun 2025 |
| [Haze](https://0xdf.gitlab.io/2025/06/28/htb-haze.html) | Windows | Hard | Splunk Enterprise Exploitation | Jun 2025 |
| [Certificate](https://0xdf.gitlab.io/2025/10/04/htb-certificate.html) | Windows | Hard | ADCS, Certificate Template Abuse | May 2025 |
| [Vintage](https://0xdf.gitlab.io/2025/04/26/htb-vintage.html) | Windows | Hard | Pure Active Directory, Kerberoasting | Apr 2025 |
### By Operating System
- **Linux** - [`machines/` filtered by OS](machines/) - Ubuntu, Debian, CentOS, custom distros
- **Windows** - [`machines/` filtered by OS](machines/) - Windows Server, Active Directory environments
- **FreeBSD/OpenBSD** - Rare but exist in the harder tiers
### By Technique
Active Directory - Kerberoasting, AS-REP Roasting, ADCS, DCSync, Pass-the-Hash, BloodHound
| Machine | Difficulty | Specific AD Technique |
|---------|------------|-----------------------|
| DarkZero | Hard | Cross-Forest Trust Abuse |
| Vintage | Hard | Kerberoasting, Pure AD |
| Certificate | Hard | ADCS Certificate Template Abuse |
| Mirage | Hard | ADCS, Shadow Credentials |
| Haze | Hard | Splunk + AD Integration |
| Retire | Hard | Kerberos Delegation Abuse |
Web Exploitation - SQLi, XSS, SSRF, SSTI, LFI/RFI, Deserialization
| Machine | Difficulty | Specific Web Technique |
|---------|------------|-----------------------|
| Dog | Easy | Backdrop CMS RCE |
| Browsed | Medium | Browser Extension RCE |
| Previous | Medium | NextJS Framework Exploitation |
| Snapped | Hard | Nginx UI Admin Panel RCE |
| Fries | Hard | Custom Web App Exploitation |
Binary Exploitation - Buffer Overflow, ROP, Heap Exploitation, Format Strings
| Machine | Difficulty | Specific Technique |
|---------|------------|-----------------------|
| RustyKey | Hard | Rust Binary Exploitation |
| NanoCorp | Hard | Custom Protocol Exploitation |
Cloud & Infrastructure - AWS, Azure, GCP, Docker, Kubernetes
| Machine | Difficulty | Specific Technique |
|---------|------------|-----------------------|
| Hercules | Insane | Container Escape, Cloud Metadata |
Enumeration & Reconnaissance
| Tool | Purpose | Link |
|------|---------|------|
| Nmap | Port scanning & service detection | [nmap.org](https://nmap.org) |
| RustScan | Fast port scanner | [GitHub](https://github.com/RustScan/RustScan) |
| Gobuster | Directory/DNS/vhost brute-forcing | [GitHub](https://github.com/OJ/gobuster) |
| Feroxbuster | Recursive content discovery | [GitHub](https://github.com/epi052/feroxbuster) |
| ffuf | Fast web fuzzer | [GitHub](https://github.com/ffuf/ffuf) |
| enum4linux-ng | SMB/Samba enumeration | [GitHub](https://github.com/cddmp/enum4linux-ng) |
Web Exploitation
| Tool | Purpose | Link |
|------|---------|------|
| Burp Suite | Web proxy & scanner | [portswigger.net](https://portswigger.net/burp) |
| SQLMap | SQL injection automation | [GitHub](https://github.com/sqlmapproject/sqlmap) |
| Nuclei | Template-based vuln scanner | [GitHub](https://github.com/projectdiscovery/nuclei) |
| Caido | Modern web proxy | [caido.io](https://caido.io) |
| PayloadsAllTheThings | Payload repository | [GitHub](https://github.com/swisskyrepo/PayloadsAllTheThings) |
Active Directory
| Tool | Purpose | Link |
|------|---------|------|
| BloodHound | AD relationship mapping | [GitHub](https://github.com/SpecterOps/BloodHound) |
| Impacket | Network protocol toolkit | [GitHub](https://github.com/fortra/impacket) |
| Rubeus | Kerberos abuse | [GitHub](https://github.com/GhostPack/Rubeus) |
| Certipy | ADCS exploitation | [GitHub](https://github.com/ly4k/Certipy) |
| NetExec (nxc) | Network execution toolkit | [GitHub](https://github.com/Pennyw0rth/NetExec) |
| Ligolo-ng | Tunneling/pivoting | [GitHub](https://github.com/nicocha30/ligolo-ng) |
Privilege Escalation
| Tool | Purpose | Link |
|------|---------|------|
| LinPEAS | Linux privesc enumeration | [GitHub](https://github.com/peass-ng/PEASS-ng) |
| WinPEAS | Windows privesc enumeration | [GitHub](https://github.com/peass-ng/PEASS-ng) |
| pspy | Process monitoring (no root) | [GitHub](https://github.com/DominicBreuker/pspy) |
| PowerUp | Windows privesc PowerShell | [GitHub](https://github.com/PowerShellMafia/PowerSploit) |
| GTFOBins | Unix binary exploitation | [gtfobins.github.io](https://gtfobins.github.io) |
| LOLBAS | Windows living-off-the-land | [lolbas-project.github.io](https://lolbas-project.github.io) |
Forensics & DFIR
| Tool | Purpose | Link |
|------|---------|------|
| Volatility 3 | Memory forensics | [GitHub](https://github.com/volatilityfoundation/volatility3) |
| Autopsy | Disk forensics | [autopsy.com](https://www.autopsy.com) |
| Wireshark | Network capture analysis | [wireshark.org](https://www.wireshark.org) |
| CyberChef | Data transformation | [GitHub](https://github.com/gchq/CyberChef) |
| Chainsaw | Windows event log analysis | [GitHub](https://github.com/WithSecureLabs/chainsaw) |
Reverse Engineering
| Tool | Purpose | Link |
|------|---------|------|
| Ghidra | Binary analysis | [ghidra-sre.org](https://ghidra-sre.org) |
| IDA Free | Disassembler | [hex-rays.com](https://hex-rays.com/ida-free) |
| radare2 | CLI reverse engineering | [GitHub](https://github.com/radareorg/radare2) |
| Binary Ninja | Binary analysis platform | [binary.ninja](https://binary.ninja) |
| dnSpy | .NET decompiler | [GitHub](https://github.com/dnSpy/dnSpy) |
Binary Exploitation
| Tool | Purpose | Link |
|------|---------|------|
| pwntools | CTF exploit framework | [GitHub](https://github.com/Gallopsled/pwntools) |
| ROPgadget | ROP chain builder | [GitHub](https://github.com/JonathanSalwan/ROPgadget) |
| GEF | GDB enhanced features | [GitHub](https://github.com/hugsy/gef) |
| one_gadget | libc one-shot gadget | [GitHub](https://github.com/david942j/one_gadget) |
| checksec | Binary security checks | [GitHub](https://github.com/slimm609/checksec.sh) |
OSCP (Offensive Security Certified Professional)
**Recommended HTB Machines for OSCP Prep:**
| Machine | Difficulty | Key Skills |
|---------|-----------|------------|
| Lame | Easy | Samba RCE, Basic Exploitation |
| Legacy | Easy | MS08-067, Windows Exploitation |
| Blue | Easy | EternalBlue (MS17-010) |
| Optimum | Easy | HFS RCE, Windows Privesc |
| Shocker | Easy | Shellshock, Linux Basics |
| Nibbles | Easy | CMS Exploitation, File Upload |
| Bashed | Easy | PHP Webshell, Cron Abuse |
| Arctic | Easy | ColdFusion, Windows Exploitation |
| Grandpa | Easy | IIS WebDAV, Token Impersonation |
| Bastard | Medium | Drupal RCE, Windows Privesc |
| Cronos | Medium | DNS Zone Transfer, SQL Injection |
| SolidState | Medium | Apache James RCE, Cron Privesc |
| Node | Medium | API Exploitation, Kernel Exploit |
| Valentine | Easy | Heartbleed, tmux Hijack |
| Poison | Medium | LFI, VNC Tunneling |
| Sunday | Easy | Finger Enumeration, Shadow File |
| DevOops | Medium | XXE, Git Secrets |
| Jeeves | Medium | Jenkins RCE, KeePass Cracking |
| Conceal | Hard | IPSec VPN, SNMP, JuicyPotato |
CPTS (Certified Penetration Testing Specialist)
**Recommended HTB Machines for CPTS Prep:**
| Machine | Difficulty | Key Skills |
|---------|-----------|------------|
| Active | Easy | AD Basics, GPP Abuse, Kerberoasting |
| Forest | Easy | AS-REP Roasting, DCSync |
| Sauna | Easy | AS-REP Roasting, WinRM |
| Monteverde | Medium | Azure AD, Password Spraying |
| Resolute | Medium | DNS Admin DLL Injection |
| Cascade | Medium | LDAP Enumeration, .NET Reversing |
| Blackfield | Hard | AS-REP, Backup Operators Privesc |
| Vintage | Hard | Pure AD Exploitation |
| Certificate | Hard | ADCS Exploitation |
| Support | Easy | LDAP, .NET Binary Analysis |
CRTO (Certified Red Team Operator)
Focus on ProLabs: **RastaLabs** and **Zephyr** are directly aligned with CRTO material.
| Machine/Lab | Type | Key Skills |
|-------------|------|------------|
| RastaLabs | ProLab | Phishing, C2, Lateral Movement |
| Zephyr | ProLab | ADCS, DPAPI, Constrained Delegation |
| Offshore | ProLab | Multi-Domain AD |
| Reel | Hard | Phishing, AppLocker Bypass |
| Mantis | Hard | AD, Kerberos, MS14-068 |
If this helped you pop a box or pass a cert, drop a star - it helps others find it too.