Metasploit Commands
π§ Metasploit Cheatsheet
π§ Starting & Stopping
msfconsole # Start Metasploit Framework Console
msfupdate # Update Metasploitπ Search & Use Modules
search <keyword> # Search for modules (e.g., search smb)
use <path/to/module> # Use a specific module (e.g., use exploit/windows/smb/ms17_010_eternalblue)
info # Show info about the selected moduleβοΈ Setting Options
show options # Show required/available options for the module
set RHOST <target_ip> # Set the target IP address
set RPORT <port> # Set the remote port (default varies per exploit)
set LHOST <your_ip> # Set local (attacker) IP address
set LPORT <port> # Set local (attacker) port
set PAYLOAD <payload_name> # Set a specific payloadπ Running the Exploit
𧬠Payloads
π₯ Meterpreter Session Basics
π» Meterpreter Commands
π§ͺ Post-Exploitation
π§° Auxiliary Modules
π¦ Exploit/Payload Generation (with msfvenom)
Last updated