Lab Field Manual
Worked examples from the OSCP-like HTB list, organised as a field manual rather than a walkthrough collection. The commands, patterns and methodology are generic pentesting material β OSCP is one application of them, not the frame.
The five layers
| Layer | Use it when⦠| Page |
|---|---|---|
| Methodology | You need the order of operations, a decision gate, or the reporting structure | Pentesting Methodology |
| Command checklist | You know what to do and need the exact command with placeholders | Command Checklist |
| Pattern library | You need to recognise a situation and choose a technique | Pattern Library |
| Machine index | You want to revise, tick off rooted boxes, or pick a box by technique | Machine Index |
| Machine pages | You are stuck on a specific box and want the non-obvious step | Linux Β· Windows Β· Active Directory |
How to use this section
- New target / new engagement: start with Methodology Phase 0β2, run the pre-flight, and keep the command checklist open.
- Stuck mid-box: skim the pattern library phase for your situation (foothold, privesc, AD), then open the matching machine entry.
- Revising: use the machine index β read the row, explain the path aloud, then check the machine page.
- After rooting: add the technique to your notes and update the machine’s
Donetick. If you found a new edge case, add it to the machine page under the same structure (Path / Edge cases / Commands / Notes).
Machine pages at a glance
| Page | Scope | Machines |
|---|---|---|
| Linux | Standalone Linux boxes | 39 |
| Windows | Standalone Windows boxes | 18 |
| Active Directory | AD sets, assumed-breach chains, plus 3 non-AD boxes | 16 (+3) |
| Machine Index | One-line path + tool/CVE for every box, with study tracks | 76 |
Recurring reflexes
- Full port scan + UDP before service enumeration β footholds hide on 4555, 61616, 22022, 1337, 8765 and 161/udp.
- Vhosts before directories β the IP root is often a decoy; a 403 is a finding.
- Credential reuse across every service, including DB passwords, configs,
.githistory and mail. - Privilege escalation order:
sudo -lβ SUID/capabilities β cron/timers β groups β credentials β kernel. - Windows:
whoami /privβ service ACLs β stored creds β token abuse β LSASS/SAM/NTDS β kernel. - AD: any account β BloodHound β Kerberos roast/ACL β delegation/ADCS β DCSync; sync the clock first.
- Stage payloads when the target is Java/Groovy/PHP-FPM β pipes and quotes get mangled.
- Record the failed path and why; that is what stops you repeating it under time pressure.
Sources and accuracy
Each machine entry ends with the writeup(s) used. Research was cross-checked against public writeups (0xdf, Ippsec, HackTricks, HTB official) and local tool versions where possible. Items that could not be verified are marked (unverified). If a box is retired, patched, or you find a better path, update the entry.
The machine list itself is maintained by Lainkusanagi; these pages annotate the HTB portion for study and general practice.
Pages
- Pentesting Methodology A methodology is a decision loop, not a linear checklist. You gather facts, choose the cheapest action that could confirm or kill a hypothesis, β¦
- Pentesting Command Checklist Copy-paste command sheet for a general pentest or an OSCP-style exam: one block per phase, checkboxes for the steps, exact commands for the tool β¦
- Pentesting Pattern Library A problem-first index of the recurring techniques that decide the boxes on the OSCP-like lab list. Each pattern is deliberately small: when to reach β¦
- OSCP Machine Index One row per box for the whole OSCP-like list β 76 machines: 39 Linux, 18 Windows, 16 AD and 3 non-AD. Use it to pick a box by technique, to revise a β¦
- HTB Linux Machines β OSCP Edge Cases Consolidated index of 39 OSCP-like HTB Linux boxes β one path per box, the non-obvious steps that decide it, and the exact commands worth memorising. β¦
- HTB Windows Machines β OSCP Edge Cases Eighteen standalone Windows boxes from the OSCP-like list β one intended path each, the non-obvious step that decides it, and the exact command worth β¦
- HTB Active Directory Machines β OSCP Edge Cases The AD half of the OSCP-like HTB list β one path per box, the step that actually decides it, and the exact command worth memorising. These are β¦