Skip to content

Reverse Engineering / Authorized Penetration Testing / Security Research Skill Router Pack AI-powered routing + On-demand toolchain bootstrapping + Self-evolving knowledge base Supports Claude Code, Kiro, Cursor, Cline, and other AI coding clients 逆向/渗透/安全技能路由包 - AI 自动路由 + 按需自举工具链 + 自动进化经验库 | 支持 Claude Code / Kiro / Cursor / Cline 等代码 AI 客户端

Shell

fix: use pwntools version subcommand

zhaoxuya5209943e7bdaa9c
diff --git a/docs/superpowers/specs/2026-09-21-pwntools-kali-discovery-design.md b/docs/superpowers/specs/2026-09-21-pwntools-kali-discovery-design.md
index 639f8f7..13005c3 100644
--- a/docs/superpowers/specs/2026-09-21-pwntools-kali-discovery-design.md
+++ b/docs/superpowers/specs/2026-09-21-pwntools-kali-discovery-design.md
@@ -76,5 +76,5 @@ Create a merge commit whose second parent is the original #144 head, preserving
## Failure handling
- A missing `pwn` command must produce an unavailable pwntools record without aborting refresh.
-- A failing `pwn version` command may leave the version empty, consistent with existing discovery behaviour, but detection remains based on executable presence.
+- A failing `pwn version` command may leave the version empty or record its first stderr diagnostic line, consistent with existing non-blocking discovery behaviour, but detection remains based on executable presence.
- Any CI failure blocks integration into `main`.
diff --git a/kali/scripts/lib/tool-discovery.sh b/kali/scripts/lib/tool-discovery.sh
index 5723d03..e7fcf30 100644
--- a/kali/scripts/lib/tool-discovery.sh
+++ b/kali/scripts/lib/tool-discovery.sh
@@ -53,7 +53,7 @@ declare -a TOOL_CATALOG=(
"msfconsole|pentest-tools|Metasploit 框架|--version|msfconsole"
"nikto|pentest-tools|Web 漏洞扫描|-Version|nikto"
"binwalk|reverse-engineering|固件分析与提取|--help|binwalk"
- "pwntools|reverse-engineering|CTF pwn 利用开发框架|--version|pwn"
+ "pwntools|reverse-engineering|CTF pwn 利用开发框架|version|pwn"
"bkcrack|reverse-engineering|CTF ZIP/PKZIP ZipCrypto 已知明文攻击|--version|bkcrack"
"yara|malware-analysis|恶意软件规则匹配引擎|--version|yara"
"gdb|reverse-engineering|调试器|--version|gdb"
diff --git a/skills/scripts/refresh-tool-index.sh b/skills/scripts/refresh-tool-index.sh
index dae9cac..79bb0d7 100644
--- a/skills/scripts/refresh-tool-index.sh
+++ b/skills/scripts/refresh-tool-index.sh
@@ -138,7 +138,7 @@ TOOLS=(
"anything-analyzer|browser-automation|Browser/HTTP analyzer MCP project|none|none|$HOME/tools/anything-analyzer;$REPO_ROOT/../anything-analyzer"
"burp-mcp-full|burp-mcp|Local Burp MCP extension and stdio bridge|none|none|$REPO_ROOT/burp-mcp-full/mcp-bridge.js"
"yara|malware-analysis|Malware rule matching engine|yara|yara --version|"
- "pwntools|reverse-engineering|CTF pwn exploit development framework|pwn|pwn --version|"
+ "pwntools|reverse-engineering|CTF pwn exploit development framework|pwn|pwn version|"
)
records_tmp="$(mktemp)"
@@ -189,9 +189,9 @@ for entry in "${TOOLS[@]}"; do
fi
if [[ "$version_spec" != "none" ]]; then
- read -r ver_cmd ver_arg1 ver_arg2 <<< "$version_spec"
- if has_cmd "$ver_cmd"; then
- version="$(run_version "$ver_cmd" "${ver_arg1:-}" "${ver_arg2:-}")"
+ read -r -a version_parts <<< "$version_spec"
+ if has_cmd "${version_parts[0]}"; then
+ version="$(run_version "${version_parts[@]}")"
fi
fi