OSCP Cheat Sheet 2026
The 30 highest-yield OSCP facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
75 questions
90 min time limit
70.00% to pass
- What does the command 'updatedb' do in Kali Linux and why is it relevant to OSCP engagements? → Rebuilds the locate command's file index database
- Which tool is commonly used during OSCP to enumerate web application directories using a wordlist? → Dirb
- During an OSCP lab, you find port 111 open on a Linux target. What service is most likely running? → Portmapper/RPC
- In a Local File Inclusion (LFI) vulnerability, which of the following payloads is used to traverse directories and read /etc/passwd? → ../../../etc/passwd
- Which Kali Linux tool is used to create a persistent USB drive that saves changes across reboots? → dd with persistence partition
- Which HTTP method is most commonly exploited to upload a malicious web shell to a vulnerable web server? → PUT
- Which command in Kali Linux displays active network connections along with the process name and PID? → netstat -tulnp
- What tool can dump Windows NTLM password hashes from the SAM database when running as SYSTEM? → Mimikatz
- After successfully exploiting a buffer overflow to get a reverse shell, you find you have low-privileged access. What OSCP methodology comes next? → Perform local privilege escalation enumeration to elevate from the current user
- Which Windows registry key stores hashed credentials for locally cached domain accounts? → HKLM\SECURITY\Cache
- Which hashcat attack mode uses a wordlist to crack password hashes? → Mode 0 (Straight/Wordlist attack)
- In Kali Linux, which command updates the package database AND upgrades all installed packages in a single step? → apt-get update && apt-get upgrade
- Which Burp Suite feature allows an attacker to intercept and modify HTTP requests between a browser and a web server? → Proxy
- What is DLL hijacking in the context of Windows privilege escalation? → Placing a malicious DLL in a directory searched before the legitimate DLL location
- A _________ is a sequential section of memory that has been set aside for holding data, like a character string or an array of numbers. → buffer
- Which command would an attacker use to enumerate writable directories in the PATH that could enable a path hijacking attack? → echo $PATH | tr ':' '\n' | xargs ls -ld
- What Kali Linux tool would you use to perform ARP spoofing to intercept traffic between two hosts on a local network? → Both arpspoof and ettercap are correct
- Which Nmap output format is most useful for importing results into other tools during OSCP? → -oX (XML)
- Where system binaries (programs) are stored → /sbin
- What Nmap script can identify anonymous FTP login on a target? → --script=ftp-anon
- When exploiting a Remote File Inclusion (RFI) vulnerability, what does the attacker typically host on their server? → A malicious PHP web shell
- What Windows privilege escalation technique abuses the SeImpersonatePrivilege token right? → Juicy Potato / PrintSpoofer token impersonation
- Which Kali Linux tool is specifically designed for brute-forcing web application login forms over HTTP? → hydra with http-post-form module
- An OSCP candidate finds a writable /etc/passwd file. Which entry would add a passwordless root-equivalent account? → hacker::0:0::/root:/bin/bash
- In Kali Linux, which command would you use to forward local port 8080 to a remote host's port 80 via SSH tunneling? → ssh -L 8080:remotehost:80 user@sshserver
- What procedure deletes a folder? → rmdir
- When using msfvenom to generate shellcode for a Windows buffer overflow, which flag specifies characters to exclude from the payload? → -b
- What does an attacker gain when they successfully exploit an XML External Entity (XXE) vulnerability? → Ability to read arbitrary local files or perform SSRF
- What is the purpose of the 'rpcinfo -p ' command during enumeration? → Enumerate all RPC services and their port numbers on the target
- Where .so (Library file, stands for "shared object") are stored (basically like Windows .dll files). → /lib
Turn these facts into recall:
Was this helpful?