VulnHub walkthrough pattern
TL;DR: VulnHub is the oldest free-to-download vulnerable-VM hub. Boxes are creator-contributed, varying quality. Solving pattern follows htb-machine-walkthrough-methodology but with VulnHub-specific quirks: offline / local network, weird hostname / IP assignment, sometimes CTF-style vs realistic, age-of-OS variance. Companion to oscp-style-box-attack-pattern and building-a-research-home-lab.
Why VulnHub still matters
- Free — no subscription.
- Offline-friendly — boxes downloaded locally; no internet required.
- Large archive — 700+ boxes spanning 2010–2024.
- Many OSCP-prep boxes — TJnull’s list incorporates VulnHub heavily.
- Beginner-friendly — Kioptrix, basic-pentesting series.
Quirks vs HTB
- Local network: configure VirtualBox / VMware host-only or NAT network.
- IP discovery:
arp-scanornetdiscoverto find the VM IP. - Old OSes: many VMs run Ubuntu 14.04 / CentOS 6 — kernel exploits work.
- CTF-style: some have flag1, flag2, flag3 with riddles.
- Realistic: others mimic real systems.
Recommended progression
Beginner
- Basic Pentesting 1, 2 — first taste.
- Kioptrix 1, 2, 3, 4 — classic series, low complexity.
- Stapler — multi-vector.
- FristiLeaks — easy web.
OSCP-prep (TJnull list)
- Brainpan series.
- Mr. Robot.
- VulnOSv2.
- SolidState.
- DC series (DC-1 through DC-9).
- Lord of the Root.
Beyond
- HackInOS.
- The Ether: EvilScience.
- Multi-machine networks (CyberSecLabs alternatives).
Setup
- Download VM (ova / vmware).
- Import into VirtualBox / VMware.
- Network: host-only or NAT network.
- Snapshot before solving (revert if you brick).
- Discover IP:
sudo arp-scan -lornetdiscover -r 192.168.x.0/24.
Solving pattern
Same as HTB:
- nmap full TCP + UDP.
- Per-service enumeration.
- Web deep-dive.
- Vector identification.
- Foothold.
- Privesc.
But:
- Web more common: VulnHub leans web-vulnerable.
- Kernel exploits more common: old OSes.
- Default credentials common: especially admin / admin.
- Comments in HTML / robots.txt often hint.
- Hidden directories with custom wordlists sometimes.
Specific tips
- Check
/etc/hostsupdates if hostname-routing matters. - Mount NFS shares if exposed (no_root_squash often misconfigured).
- Read CMS sources if a CMS visible (WordPress wp-config.php, Joomla configuration.php).
- Find SUID binaries — old VMs often have custom SUID.
- Look for backup files (
.bak,.old,.swp).
Differences from HTB
| Aspect | HTB | VulnHub |
|---|---|---|
| Network | Hosted, instant | Local, you set up |
| Difficulty | Curated tiers | Wildly variable |
| Active community | Yes (Discord) | Less |
| Hints / writeups for active | Limited | All retired; writeups freely available |
| Subscription | Free + paid | Free |
| Modern OS | Yes | Often legacy |
Common pitfalls
- VM doesn’t get IP: bridged network instead of NAT/host-only.
- Outdated boxes: some 2012-era boxes have broken setup; check VulnHub comments.
- Box-specific tricks: some require physical-disk reset (rare).
Workflow to study
- Read TJnull’s OSCP prep list for VulnHub recommendations.
- Solve 5 easy boxes (Kioptrix 1, 2, Basic Pentesting 1).
- Solve 10 OSCP-prep-tier boxes.
- Write your own writeup for each — even if it duplicates existing ones.
After VulnHub
Progression:
- HTB for modern pen-test simulation.
- OSCP labs if pursuing certification.
- Pro Labs / multi-machine (building-a-research-home-lab for AD lab).
- Real bug-bounty (ctf-to-bug-bounty-transition).
Related
- htb-machine-walkthrough-methodology
- oscp-style-box-attack-pattern
- pwn-college-walkthrough-methodology
- ctf-jeopardy-pwn-strategy
- oscp-roadmap
- building-a-research-home-lab
- testing-methodology-checklists