metasploit
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Metasploit Framework
Generate payloads, scan services, and catch reverse shells using Metasploit (msfconsole/msfvenom).
Tool Status
- Tool installed: !
command -v msfconsole > /dev/null 2>&1 && echo "YES -- $(grep metasploit /opt/metasploit-framework/version-manifest.txt 2>/dev/null | head -1 || msfconsole --version 2>/dev/null | head -1)" || echo "NO -- Install: https://docs.metasploit.com/docs/using-metasploit/getting-started/nightly-installers.html" - Wrapper scripts available: !
test -f scripts/metasploit/scan-network-services.sh && echo "YES -- use wrapper scripts for structured JSON output" || echo "NO -- using standalone mode with direct commands"
Mode: Wrapper Scripts Available
If wrapper scripts are available (shown as YES above), prefer these commands. They provide structured JSON output and educational context.
Payload Generation
bash scripts/metasploit/generate-reverse-shell.sh <LHOST> <LPORT> -j -x-- Create reverse shell payloads for Linux, Windows, macOS, PHP, Python
Service Scanning
bash scripts/metasploit/scan-network-services.sh <target> -j -x-- Enumerate services using Metasploit auxiliary scanners (SMB, SSH, HTTP, MySQL)