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

test(kali): scope pwntools help to reverse analysis

zhaoxuya520aa5db39b2288
diff --git a/kali/scripts/test-pwntools-discovery.sh b/kali/scripts/test-pwntools-discovery.sh
index 772211a..54c3cd7 100755
--- a/kali/scripts/test-pwntools-discovery.sh
+++ b/kali/scripts/test-pwntools-discovery.sh
@@ -407,6 +407,7 @@ import sys
lines = sys.argv[1].splitlines()
section_pattern = re.compile(r"^\s*\[([^]]+)\]\s*$")
+allowed_section_title = "逆向分析"
allowed_sections = []
for index, line in enumerate(lines):
@@ -414,7 +415,7 @@ for index, line in enumerate(lines):
if heading is None:
continue
title = heading.group(1)
- if "逆向" not in title and "ctf" not in title.casefold():
+ if title != allowed_section_title:
continue
section_end = len(lines)
for candidate in range(index + 1, len(lines)):
@@ -432,7 +433,7 @@ if not matching_sections:
inspected = [title for title, _ in allowed_sections]
raise SystemExit(
"bootstrap human help must include the complete token 'pwntools' inside "
- "a CTF/reverse-analysis section before the next section heading; "
+ f"the [{allowed_section_title}] section before the next section heading; "
f"inspected sections: {inspected!r}"
)
PY