OSCP / PEN-200 Notes¶
A comprehensive, phase-based methodology and command reference for the OffSec Certified Professional (OSCP+ / PEN-200) exam โ enumeration, exploitation, Linux & Windows privilege escalation, Active Directory, and pivoting.
๐ Read these notes as a searchable site โ mrr10.github.io/oscp-notes โ instant search, dark mode, and the live Command Arsenal.
These notes are organised the way the exam is actually fought: enumerate โ find a foothold โ escalate โ pivot โ repeat, across standalone hosts and an Active Directory chain. Each page follows the same shape โ methodology โ decision flow โ the actual commands โ gotchas.
โ ๏ธ Study aid only. The OSCP exam prohibits LLMs and AI chatbots (and mass scanners, auto-exploitation tools, and commercial tools). Use these notes for learning and lab practice โ never during the exam itself.
The exam at a glance¶
| Hands-on window | 23 hours 45 minutes, proctored |
| Report window | +24 hours to write & submit a professional report |
| Targets | 3 standalone machines + 1 Active Directory set (3 machines) = 6 hosts |
| Standalone points | 20 each (10 initial access + 10 privesc) โ 60 total |
| Active Directory points | 40 total, split 10 / 10 / 20 across the chain (works in sequence) |
| Max score | 100 points; no bonus points (removed Nov 1, 2024) |
| Passing | 70/100 through Nov 30 2026; equated scaled scoring from Dec 1 2026 |
| Proof | Screenshot + local.txt (user) and proof.txt (root/SYSTEM) per host |
Tool restrictions (read these twice)¶
- Metasploit / Meterpreter: usable on one machine of your choice only. Using
msfvenomto generate shellcode, or using theexploit/multi/handler, does not count as "using Metasploit." - Banned: spoofing (IP/ARP/DNS/NBNS); commercial tools (Metasploit Pro, Burp Pro, Cobalt Strike); automatic exploitation tools (
db_autopwn,browser_autopwn, SQLmap, SQLninja); mass vulnerability scanners (Nessus, OpenVAS, Nexpose, Nuclei); and AI chatbots / LLMs. - Allowed: single-target tools โ Nikto,
gobuster/feroxbuster/dirb, Hydra, BloodHound (Legacy/CE), and automated enumeration scripts (linPEAS/winPEAS) โ as long as they don't auto-exploit (if a script lands a shell on its own, that's a banned auto-exploitation and the points are void).
The master methodology¶
flowchart TD
A["Target in scope"] --> B["Full port + service enumeration"]
B --> C["Enumerate every service deeply"]
C --> D{"Foothold vector?"}
D -->|public exploit| E["Find / modify exploit"]
D -->|web app| F["Web attacks"]
D -->|weak creds| G["Password attacks"]
E --> H["Initial shell (user)"]
F --> H
G --> H
H --> I["Stabilise shell + local enum"]
I --> J["Privilege escalation (Linux / Windows)"]
J --> K["root / SYSTEM โ grab proof.txt"]
K --> L{"Credentials / AD in reach?"}
L -->|yes| M["Pivot / tunnel -> next host -> repeat"]
L -->|no| N["Next target"]
Golden rule of OSCP: enumeration is 80% of the exam. When you're stuck, you have not enumerated enough โ go back a step, not forward.
Read The OSCP mindset & method first. It's the heart of this repo โ how to think on an unknown box, how to read output, and the stuck-protocol for when you hit a wall. Every other page is detail underneath it.
Contents¶
Methodology¶
- Exam strategy โ format, points, time management, restrictions, note-taking, reporting
- Enumeration methodology โ the enumerate-first loop and mindset
Quick reference¶
- Command Arsenal โ every recurring technique, decoded flag-by-flag and searchable by keyword (
nmap,smb,kerberoast,suidโฆ). Openreference/command-arsenal.htmlfor a live filter-as-you-type version; both are generated from a single source inreference/.
Enumeration¶
Exploitation¶
Web¶
- Web application attacks โ (pairs with the deeper BSCP web notes)
Password attacks¶
Privilege escalation¶
Active Directory¶
- AD enumeration
- AD attacks (Kerberoast, AS-REP, spraying, ACLs)
- AD lateral movement & domain compromise
Pivoting¶
References¶
- References & further reading โ authoritative external guides per topic: Linux/Windows privesc (g0tmi1k, GTFOBins, LOLBAS, PEASS-ng), Active Directory (The Hacker Recipes, ired.team, WADComs), pivoting, cracking, and exploit-dev.
Extras¶
- Worked walkthrough โ the mindset in motion โ one fictional box from nmap to root, narrated to show how the method is used (read this after the mindset page)
- Exam report template โ fill-as-you-go, built around OffSec's reproducibility bar
- Kali setup script โ stages chisel, ligolo, PEAS, impacket, seclists, potatoes, etc. into
~/toolsand~/www
How to use these notes¶
Work the master methodology top to bottom per host. Start at enumeration, and when a service looks interesting jump to its section in the per-port playbook. Got a shell? Go to the matching privesc page. Found domain creds? Move to Active Directory. Need to reach an internal host? Pivoting.
Commands use these placeholders: $IP (target), $LHOST (your box), $LPORT (your listener), $USER / $PASS / $DOMAIN.
References¶
๐ The full, categorised list lives in References & further reading โ general wikis, per-topic deep dives (Linux/Windows privesc, AD, pivoting), password cracking, and exploit-dev.
Quick picks: HackTricks ยท PayloadsAllTheThings ยท GTFOBins ยท LOLBAS ยท g0tmi1k โ Linux privesc ยท The Hacker Recipes
Disclaimer¶
For authorised use only โ OffSec lab machines, your own lab, and systems you have explicit written permission to test. Never use these techniques against systems you don't own or aren't contracted to assess.