用途:PentestCode 是终端内运行的 AI 渗透测试智能体,面向授权安全测试、CTF 与目标导向的渗透任务,自动化从侦察到后渗透的工作流。
主要能力:采用多智能体架构,由策略智能体协调 13 个专用智能体(侦察、扫描、枚举、利用、身份/AD、基础设施、Web 应用、后渗透、漏洞开发、复核、报告等),并行生成并共享测试状态。内置解析工具(nmap_parse、nuclei_parse、cme_parse、gobuster_parse、bloodhound_parse、sqlmap_parse)、分析工具(xss_detect、jwt_analyze、scope_check)、战术工具(cred_spray、attack_path_suggest、tunnel_manage)及状态管理工具(state_update、state_query)。状态持久化于 .pentestcode/state.json,记录主机、服务、漏洞、凭据、访问权限、关系图与 AD 模型。支持 auto、free、guided 三种模式,以及 /status、/targets、/vulns、/creds、/scope、/phase、/mode、/pause、/report 等斜杠命令。
使用方式:安装可执行 curl -fsSL https://raw.githubusercontent.com/s0ld13rr/pentestcode/main/install.sh | bash,或从源码用 Bun 构建。首次需运行 pentestcode auth login 配置 LLM 提供商,配置文件为 .pentestcode/pentestcode.jsonc。支持 Anthropic、OpenAI、Google、Azure、AWS Bedrock、Ollama、Together、Groq、Fireworks、DeepSeek、Mistral。可交互运行或一次性执行 pentestcode --prompt "..."。
适用场景:授权渗透测试、CTF、CI/CD 自动化安全测试、与现有工具链集成。
限制:不捆绑渗透工具,需另行安装 nmap、nuclei、gobuster、netexec 等;解析器要求特定输出格式;需自行提供 LLM API 密钥;仅限合法授权范围使用。收费、价格与效果数据暂未提供。