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: scope pwntools version probe environment
zhaoxuya520cab634bd855f
diff --git a/kali/scripts/lib/tool-discovery.sh b/kali/scripts/lib/tool-discovery.shindex e7fcf30..49dfb70 100644--- a/kali/scripts/lib/tool-discovery.sh+++ b/kali/scripts/lib/tool-discovery.sh@@ -161,7 +161,11 @@ get_tool_version() {filocal output- output=$("$cmd" $version_args 2>&1 | head -n1) || true+ if [[ "${cmd##*/}" == "pwn" && "$version_args" == "version" ]]; then+ output=$(PWNLIB_NOTERM=1 "$cmd" version 2>&1 | head -n1) || true+ else+ output=$("$cmd" $version_args 2>&1 | head -n1) || true+ fiecho "$output"}diff --git a/skills/scripts/refresh-tool-index.sh b/skills/scripts/refresh-tool-index.shindex 79bb0d7..60bea6b 100644--- a/skills/scripts/refresh-tool-index.sh+++ b/skills/scripts/refresh-tool-index.sh@@ -33,7 +33,11 @@ run_version() {echo ""return 0fi- "$cmd" "$@" 2>&1 | head -n 1 | tr '\n' ' ' | sed 's/[[:space:]]*$//' || true+ if [[ "$cmd" == "pwn" && "$#" -eq 1 && "${1-}" == "version" ]]; then+ PWNLIB_NOTERM=1 "$cmd" "$@" 2>&1 | head -n 1 | tr '\n' ' ' | sed 's/[[:space:]]*$//' || true+ else+ "$cmd" "$@" 2>&1 | head -n 1 | tr '\n' ' ' | sed 's/[[:space:]]*$//' || true+ fi}file_exists_any() {@@ -188,7 +192,7 @@ for entry in "${TOOLS[@]}"; dodonefi- if [[ "$version_spec" != "none" ]]; then+ if [[ -n "$version_spec" && "$version_spec" != "none" ]]; thenread -r -a version_parts <<< "$version_spec"if has_cmd "${version_parts[0]}"; thenversion="$(run_version "${version_parts[@]}")"