ctf-solver

仅在用户明确使用 /ctf-solver 指令或显式说"调用CTF技能/skill"时才触发,不自动响应任何CTF相关关键词。 本技能以夺取flag为唯一目标,调用大量工具、深度分析题目,给出完整的解题过程和可执行的攻击链。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ctf-solver" with this command: npx skills add hermes186/ctf-solver-claude

CTF Solver — 专业夺旗技能

核心原则

  1. 以夺取 flag 为唯一目标,不惜调用任何工具、执行任何命令。
  2. 深度优先:先穷举所有可能向量,再逐步缩小范围。
  3. 工具驱动:优先用 bash_tool 执行命令、安装工具、运行 exploit。
  4. 迭代调试:每一步都验证输出,遇到错误立即调整策略。
  5. 完整输出:给出从题目分析到 flag 提交的完整攻击链。

Step 0 — 题目类型判断

在调用子技能之前,先判断题目类型。按以下优先级匹配:

判断依据类型
给了 URL / IP:Port,有登录页、表单、APIWEB
给了 ELF/PE 二进制,提示"nc"连接,有 libcPWN
给了压缩包、图片、流量包、音频、文本加密MISC
给了可执行文件但无"nc"连接,提示分析逻辑REVERSE
同时满足多个分别处理,优先级 WEB > PWN > REVERSE > MISC

判断完成后,立即阅读对应子技能文件,然后按其流程执行。


子技能文件索引

类型文件路径触发条件
WEBreferences/web.mdHTTP 服务、Web 漏洞利用
PWNreferences/pwn.md二进制漏洞、内存利用
MISCreferences/misc.md编解码、隐写、取证、密码学
REVERSEreferences/reverse.md静态/动态逆向分析

用法:判断类型后,用 view 工具读取对应文件,按其步骤执行。


通用工具速查

# 环境准备(优先在沙箱运行)
pip install pwntools requests flask --break-system-packages
apt-get install -y binutils file strings xxd gdb radare2 2>/dev/null

# 基础识别
file <binary>
strings <binary> | grep -i flag
xxd <binary> | head -50
binwalk <file>           # 文件嵌套检测

# 网络
curl -v 'http://target/...'
python3 -c "import requests; r=requests.get('http://...'); print(r.text)"

Flag 格式速查

大多数 CTF 的 flag 格式:

  • flag{...}CTF{...}XXXXCTF{...}(赛事名+大括号)
  • Base64/hex 编码后的上述格式
  • 纯 MD5/SHA1 哈希(题目会说明)

找到 flag 后,立即输出完整 flag 字符串,并说明是如何得到的。


遇到困难时的 escalation 路径

  1. 尝试所有已知向量 → 仍无进展
  2. web_search 搜索题目关键词 + "CTF writeup"
  3. 搜索具体漏洞/技术点的 PoC
  4. 在 bash 中安装专用工具后重试
  5. 如仍无法解题,输出当前分析结果和下一步建议

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

老人跌倒检测技能

Utilizes vision and radar technology for contactless detection of falls. It triggers alarms within seconds and is suitable for home safety monitoring of elde...

Registry SourceRecently Updated
General

Conversation Focus

对话焦点管理 + 需求澄清引导。每次对话开始时自动分析用户意图,确保需求清晰、限制明确,避免模型分散注意力。自动对接到 self-improving 进行持续优化。

Registry SourceRecently Updated
General

AIWolfPK - AI狼人杀

四个AI互相猜疑,你坐着看戏。每局30秒,到底谁是狼? Four AIs play Werewolf while you watch. 30s per round. Spot the wolf before they do.

Registry SourceRecently Updated
General

Project Analyzer

Analyze any project directory and produce a detailed report covering what the project does, its tech stack, folder structure, entry points, how to run it, an...

Registry SourceRecently Updated