Post
Cancel

How do I prepare for the OSCP?

Considered like a “must have” certification for those who wants to become Penetration testers, the OSCP (Offensive Security Certified Professional) is one of my main goals for 2021 (specially).

This is all more true since the 2020 update of PWK (Penetration Testing with Kali Linux: the preparation course).

Summary

  1. Lab preparation: Vulnerable machines To-Do List
  2. Exam preparation
  3. Useful OSCP reviews/resources

New course trailer:


1. Lab preparation: Vulnerable machines To-Do List

hackthebox.eu (NetSecFocus Trophy Room)

The following list of VM is inspired from TJ_Null’s list of OSCP-like VMs

Linux

MachineDifficultyStatusWU 
LameEasy✅link 
BeepEasy✅link 
BlockyEasy✅link 
MiraiEasy✅link 
ShockerEasy✅link 
NibblesEasy✅link 
ValentineEasy✅link 
SwagShopEasy✅link 
NetworkedEasy✅link 
BashedEasy✅link 
IrkedEasy✅link 
FriendZoneEasy✅link 
FrolicEasy✅link 
PostmanEasy✅link 
SenseEasy✅link 
SundayEasy✅link 
OpenAdminEasy✅link 
TraverxecEasy✅link 
AdmirerEasy✅link 
BlunderEasy✅link 
DoctorEasy✅link 
TabbyEasy✅link 
PopcornMedium❌  
CronosMedium❌  
JarvisMedium❌  
NodeMedium❌  
SolidstateMedium❌  
TartarsauceMedium❌  
OctoberMedium❌  
MangoMedium❌  
HaircutMedium❌  
NinevehMedium❌  
PoisonMedium❌  
MagicMedium❌  

Windows

MachineDifficultyStatusWU
LegacyEasy✅link
BlueEasy✅link
DevelEasy✅link
OptimumEasy✅link
GrannyEasy✅link
ArcticEasy✅link
GrandpaEasy✅link
BountyEasy✅link
JerryEasy✅link
ForestEasy✅link
BastionEasy✅link
ActiveEasy✅link
BuffEasy✅link
ServmonEasy✅link
RemoteEasy✅link
BastardMedium✅link
SiloMedium✅TODO
ChatterboxMedium❌ 
SecNotesMedium❌ 
FuseMedium❌ 
ConcealHard❌ 
BankrobberInsane❌ 

tryhackme.com

There is a machine with a buffer overflow for sure in the exam, so I plan to do both of these THM rooms:

vulnhub.com

List inspired from abatchy’s blog: OSCP-like Vulnhub VMs

MachineDifficultyStatusWU
FristiLeaksBeginner✅link
StaplerBeginner✅link
PwnLabBeginner✅link
BrainpanIntermediate✅link
Mr-RobotIntermediate✅link
VulnixIntermediate❌ 

2. Exam preparation

Rules reminder

Rules reminder: https://help.offensive-security.com/hc/en-us/articles/360040165632

The exam is proctored in order to avoid cheating.

  • First part of the exam: 23 hours and 45 minutes to compromise multiple machines.
    • Buffer Overflow machine: 25 points
    • Another machine of 25 points
    • 1 machine of 10 points
    • 2 machines of 20 points each
    • Doing the lab report: 5 bonus points
      • no less than ten (10) machines in the labs and document course exercises Source

70 points (out of a total of 100) are required to pass the exam.

  • Second part of the exam: 24 hours to write a report describing the exploitation process for each target.
    • if an exploit was used with no need of source code modifications, only URL should be provided.
    • if any modifications to an exploit, should be provided:
      • original exploit URL
      • modified exploit code
      • highlighted changes plus reasons of those changes
      • command used to generate any shellcode (if applicable)
    • each proof file (local.txt and proof.txt) must be shown in a screenshot:
      • within an interactive shell sessions on the target machine with the type or cat command from their original location
      • includes the IP address of the target by using ipconfig, ifconfig or ip addr command

The report must be precise enough so that a competent reader can replicate the attacks step-by-step.

  • Restrictions:
    • Using Metasploit Auxiliary, Exploit, or Post modules on multiple machines (as well as Meterpreter payload)
    • Spoofing (IP, ARP, DNS, NBNS, etc)
    • Commercial tools or services (Metasploit Pro, Burp Pro, etc.)
    • Automatic exploitation tools (e.g. db_autopwn, browser_autopwn, SQLmap, SQLninja etc.)
    • Mass vulnerability scanners (e.g. Nessus, NeXpose, OpenVAS, Canvas, Core Impact, SAINT, etc.)
    • Features in other tools that utilize either forbidden or restricted exam limitations

“The primary objective of the OSCP exam is to evaluate your skills in identifying and exploiting vulnerabilities, not in automating the process.”

We can use the following against all of the target machines: exploit/multi/handler, msfvenom, pattern_create.rb and pattern_offset.rb as well as nmap (and its scripting engine), nikto, Burp Free, DirBuster etc.

Dry run

Regarding the exam, practicing a dry run for 24 hours (without reading the writeups) will allow me to get in condition:

  1. A Pre-Exam for Future OSCP Students
  2. Vulnhub machines:
  • DC 6
  • Pinkys Palace
  • Symfonos 1
  • Troll 1

3. Useful OSCP reviews/resources

This post is licensed under CC BY 4.0 by the author.