Skip to content

Repository files navigation

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.

Docs Exam Course License Last commit

πŸ“– 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 msfvenom to generate shellcode, or using the exploit/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"]
Loading

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

Quick reference

Enumeration

Exploitation

Web

Password attacks

Privilege escalation

Active Directory

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


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.