Passing the OffSec Certified Professional (OSCP) exam demands more than passing theoretical quizzes; it's a 24-hour test of hands-on persistence, enumeration discipline, and manual exploitation. Offered by Offensive Security, the OSCP requires candidates to compromise active systems in a controlled lab environment and write a professional penetration test report. If you're tired of surface-level guides telling you to "just practice more," this roadmap cuts through the noise with a concrete study schedule, exact methodology, and actionable tips to conquer the exam on your first attempt.
The core intent behind searching for OSCP preparation is finding a structured, battle-tested blueprint that moves beyond basic command-line tutorials. Candidates need to know how to bridge the gap between easy beginner boxes and the complex, multi-step privilege escalations seen in the exam. This guide details the prerequisite knowledge, active enumeration frameworks, time management tactics, and reporting strategies required to earn your certification.
Setting Up Your Technical Foundation
Before tackling advanced buffer overflows or active directory bloodhounds, you need absolute fluency in your tools and operating systems. The exam environment runs on Kali Linux, but you'll attack both Linux and Windows targets.
You shouldn't waste precious exam minutes trying to remember basic syntax or file permissions. Spend your first few weeks of prep mastering the command line until it feels like second nature.
- Linux Navigation: Master text manipulation tools like
awk,sed,grep, andcutto parse large scan outputs quickly. Learn how to write basic Bash scripts to automate repetitive enumeration tasks. - Windows Internals: Understand Windows architecture, service configurations, user account control (UAC), and administrative shares (
ADMIN$,C$). Knowing where credentials hide in the registry or memory is half the battle. - Networking Essentials: Memorize the TCP/IP stack, common ports, and tunneling techniques. When direct outbound connections fail, you'll need to know how to pivot using tools like
ChiselorLigolo-ng.
Building a Bulletproof Enumeration Methodology
Failure on the OSCP almost always stems from poor enumeration. When you hit a wall on a target, it's rarely because an exploit is too advanced; it's because you missed a running service, an open port, or a misconfigured file permission.
Adopting a strict methodology prevents you from falling down rabbit holes. When you encounter a target IP address, execute your reconnaissance in a predictable order.
- Port Scanning: Run a fast TCP port scan using
masscanornmapto identify active ports, followed by a full TCP connect scan with script and version detection (nmap -sC -sV -p-). Don't forget UDP scans for services like SNMP or DNS. - Service Enumeration: Inspect every discovered port manually. If you find HTTP/HTTPS, browse the site, run directory fuzzing with
gobusterorferoxbuster, checkrobots.txt, and examine page source code for hidden comments. - Vulnerability Assessment: Search for known exploits using
searchsploitor online databases, but prioritize manual analysis and configuration checks over automated scripts that might crash the service. - Credential Gathering: Look for exposed configuration files, backup scripts, or unquoted service paths. Reuse credentials across discovered services (credential stuffing) within the lab network.
Mastering Privilege Escalation
Gaining initial access (getting a low-privileged shell) is only half the challenge. The bulk of exam points relies on escalating your privileges to root on Linux or NT AUTHORITY\SYSTEM on Windows.
Instead of randomly running automated scripts like LinEnum or WinPEAS without understanding the output, learn to identify the underlying misconfigurations manually.
- Linux Privilege Escalation Vectors: Check
sudo -lfor permitted commands, search for SUID/SGID binaries, inspect cron jobs for writable scripts, and check for kernel vulnerabilities or exposed Docker sockets. - Windows Privilege Escalation Vectors: Audit service permissions with
accesschk, check for unquoted service paths, look for AlwaysInstallElevated registry keys, and scan for unattended installation files containing plaintext credentials.
Conquering the Active Directory Hurdle
The modern OSCP exam features an Active Directory set containing multiple interconnected domains and machines. This is where many candidates stumble because standalone box practice doesn't prepare you for lateral movement and domain compromise.
To clear this section, you must understand how to map a domain from a single compromised machine.
- Domain Enumeration: Use tools like
BloodHoundto visualize domain relationships, identify insecure access control lists (ACLs), and locate users with administrative privileges. - Credential Harvesting: Dump credentials from memory using
MimikatzorSharpCollection, and look for Kerberoastable or AS-REP roastable service accounts that allow offline ticket cracking. - Lateral Movement: Utilize pass-the-hash or pass-the-ticket attacks using
Impacketscripts (psexec.py,wmiexec.py) to move across hosts until you reach the domain controller.
Exam Day Strategy and Time Management
The OSCP exam lasts 24 hours, followed by an optional 24-hour window to submit your report. Managing your energy and focus is just as important as technical skill.
- Pacing Yourself: Don't spend more than two hours stuck on a single machine without taking a break, clearing your head, or switching to another target.
- Documentation as You Go: Take screenshots and record your commands while you exploit the machines. Trying to recreate your steps at hour 23 of the exam leads to missing crucial evidence and failing the reporting requirement.
- Sleep and Nutrition: Schedule mandatory offline breaks. Fatigue causes tunnel vision, making you miss obvious clues in your terminal output.
Frequently Asked Questions
How much coding experience do I need before starting OSCP?
You don't need to be a software developer, but you must be comfortable reading and modifying exploit scripts written in Python or Bash. Understanding how to tweak an existing exploit to fit a specific target's memory offset or port configuration is essential.
Are buffer overflows still required on the exam?
Yes, standalone buffer overflow challenges remain part of the exam structure. You must be able to manually locate a vulnerability, calculate the offset, generate bad characters, craft shellcode, and redirect execution flow to achieve root or system access.
What is the passing score for the OSCP exam?
You need 70 points out of 100 to pass. Points are awarded for fully compromising target machines and demonstrating proof flags, with additional bonus points available if you complete a specific percentage of the official lab exercises and submit lab notes.
How detailed does the exam report need to be?
Your report must be comprehensive enough for a junior system administrator to reproduce your steps and patch the vulnerabilities. It requires an executive summary, clear descriptions of each vulnerability, step-by-step reproduction instructions with screenshots, and actionable remediation advice.