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
test(kali): require resolved pwn preflight path
zhaoxuya520715d56f34cf2
diff --git a/kali/scripts/test-pwntools-discovery.sh b/kali/scripts/test-pwntools-discovery.shindex a36ddf1..61cc82e 100755--- a/kali/scripts/test-pwntools-discovery.sh+++ b/kali/scripts/test-pwntools-discovery.sh@@ -567,11 +567,24 @@ if [[ $bootstrap_status -ne 0 ]]; thenprintf '%s\n' "$bootstrap_output" >&2exit 1fi-if [[ "$bootstrap_output" != *"pwntools 已可用"* && \- "$bootstrap_output" != *"✓ pwntools"* ]]; then- echo "bootstrap did not report pwntools as already available or ready" >&2- printf '%s\n' "$bootstrap_output" >&2- exit 1-fi++# A successful exit or the generic completion summary is insufficient: the+# preflight itself must report that the logical pwntools capability resolved to+# the isolated pwn executable. Strip terminal color before matching the exact+# ready line so ANSI formatting cannot weaken or break the assertion.+"$REAL_PYTHON" - "$bootstrap_output" "$BIN_DIR/pwn" <<'PY'+import re+import sys++ansi_escape = re.compile(r"\x1b\[[0-?]*[ -/]*[@-~]")+lines = [ansi_escape.sub("", line).rstrip("\r") for line in sys.argv[1].splitlines()]+expected = f"[OK] pwntools 已可用: {sys.argv[2]}"+if expected not in lines:+ raise SystemExit(+ "bootstrap preflight did not report the resolved pwn stub path on the "+ f"exact ready line {expected!r}; normalized output:\n"+ + "\n".join(lines)+ )+PYecho "Kali pwntools discovery regression passed"