Metasploit cheat sheet for penetration testing
Installation & Setup
# Install on Kali Linux (pre-installed)
sudo apt update && sudo apt install metasploit-framework
# Install on Ubuntu/Debian
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
chmod 755 msfinstall
./msfinstall
# Install on CentOS/RHEL
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
chmod 755 msfinstall
./msfinstall
# Install via Git (development)
git clone https://github.com/rapid7/metasploit-framework.git
cd metasploit-framework
bundle install
# Initialize the database
sudo msfdb init
sudo msfdb start
# Update Metasploit
msfupdate
# Verify installation
msfconsole --versionInitial Reconnaissance & Information Gathering
Vulnerability Scanning & Assessment
Exploitation Phase
Payload Configuration & Handlers
Post-Exploitation & Lateral Movement
Persistence & Backdoors
Network Pivoting & Tunneling
Web Application Exploitation
Password Attacks & Cracking
Evasion & Anti-Forensics
Database Integration & Automation
Useful Meterpreter Commands Quick Reference
Common Resource Scripts for Automation
Previoustcpdump cheat sheet for vulnerability assessment and penetration testingNextBurp Suite (Community Edition) cheat sheet for web application testing
Last updated