AI Agent 工程实践(一):大模型 API 接入及渗透测试超级智能体对接(挖掘nday/0day)
前言
基础能力决定知识体系的上层构建,扎实的底层认知决定后续学习的深度与广度。在进行本实验前,非常建议按照顺序学习以下文章打好基础,上手更快。
人工智能世界观(认知篇)-CSDN博客文章浏览阅读281次,点赞7次,收藏6次。本文系统梳理了人工智能(AI)的基础知识体系,重点解析了大模型(LLM)的核心原理、技术演进及应用边界。主要内容包括: AI基础认知:从规则驱动到数据驱动的范式转变,强调AI=数据+算法+算力的技术本质,区分了弱AI与通用AI(AGI)的能力差异。 技术发展史:回顾AI七十年发展,从符号主义、专家系统到深度学习的五次技术浪潮,重点分析Transformer架构如何推动大模型革命。 大模型原理:详解LLM的三大支柱(参数量/数据量/算力),揭示自回归生成和注意力机制的工作逻辑,对比GPT与BERT的技术路线差https://blog.csdn.net/qq_73252299/article/details/163116481大模型基础(LLM原理篇)-CSDN博客文章浏览阅读239次,点赞7次,收藏5次。本文深入解析了大语言模型(LLM)的技术原理与发展历程,重点阐述了从神经网络基础到Transformer架构革命的关键突破。文章系统性地拆解了大模型训练的完整流程,包括预训练、监督微调(SFT)和人类反馈强化学习(RLHF)三个阶段,揭示了模型如何从海量数据中学习知识并逐步对齐人类意图。通过分析GPT系列的技术演进路线,展现了从简单文本生成到复杂推理能力的涌现过程,并探讨了开源与闭源模型的不同发展策略。文章最后强调理解大模型底层机制的重要性,指出只有穿透"黑箱"表象,才能准确把握这一技术
https://blog.csdn.net/qq_73252299/article/details/163215705
在跟随本章实验操作之前,请仔细查看实验用品清单,按需配置实验环境所需资源,部分软件下载需魔法上网环境,请自行准备,实验环境要求:1APIkey+一个应用:
| 资源名称 | 地址 | 说明 |
| API服务KEY | https://platform.sec.hn.cn/ | 专业技术大模型平台 |
| Trae IDE/Work | 下载链接 | 字节编码智能体应用 |
| Codex(ChatGPT) | 下载链接 | OpenAI |
| WorkBuddy | 下载链接 | 腾讯专家智能体应用 |
| LobsterAI | 下载链接 | 网易有道龙虾 |
| Aionui | 下载链接 |
桌面办公Agent |
| Reasonix | 下载链接 |
Windows 10+/MacOS12+ |Node.js 22+ 、Python3.10+
账户注册
先前往专业技术大模型平台注册一个账号,并且创建一个API KEY:
| https://platform.sec.hn.cn/ |
平台允许直接使用Github登录,无需注册:

进入后注意两个信息,第一个是API接口URL,复制备用:

第二个是创建API KEY:

创建APIKEY时,注意分组,软件工程开发的选defauit默认分组,运维支持的选opser,网络安全的选择cyper分组,每个分组中的模型不互通!!!

选择好后点击保存更改,即完成,将APIKEY复制出来备用。

模型所属分组,可以在平台的模型广场查看分组:

列出清单
API接口:https://api.sec.hn.cn
APIKEY:sk-cSU7rWXsRDRoynriTHKUPiynh5XzpzCBSgy8FWFLE4RaSdz8
API KEY将在文章发布后失效,请自行创建自己的!!!!!
接口参考文档:文档说明 - HXSEC AI Platform Docs文档说明 - HXSEC AI Platform Docs
https://docs.sec.hn.cn/
一、大模型 API 基础
在 AI Agent 系统中,大模型 API(Large Language Model API)是连接应用程序与人工智能模型能力的核心接口。它类似于传统软件开发中的第三方服务接口,通过标准化的 HTTP 请求方式,使开发者无需自行训练和部署大型模型,即可调用 GPT、Claude、DeepSeek、Gemini 等大语言模型提供的推理能力。简单来说,大模型 API 就是一座连接应用与模型的桥梁。
大模型 API 本质上是一组由模型服务商提供的接口规范,用于完成以下任务:
- 发送用户请求;
- 提供上下文信息;
- 指定调用模型;
- 控制生成参数;
- 获取模型返回结果。
例如,一个简单的聊天请求:
{
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "解释一下什么是人工智能"
}
]
}
模型接收到请求后,会根据训练得到的语言能力和当前上下文生成响应:
{
"choices": [
{
"message": {
"role": "assistant",
"content": "人工智能是一种模拟人类智能能力的技术..."
}
}
]
}
整个过程类似调用一个远程函数:
answer = AI_Model(prompt)
开发者只需要调用接口,即可获得模型能力。
基本组成
一个完整的大模型 API 请求通常包含以下几个部分:
1. Endpoint(接口地址)
Endpoint 是 API 服务入口,例如:
https://api.sec.hn.cn
不同厂商通常提供不同的 API 地址。例如:
OpenAI
↓
api.openai.com
DeepSeek
↓
api.deepseek.com
企业自建 Gateway
↓
api.sec.hn.cn
2. Authentication(身份认证)
大模型 API 通常使用 API Key 进行身份验证。请求示例:
Authorization: Bearer sk-xxxxxxxx
API Key 用于:
- 识别用户身份;
- 控制访问权限;
- 统计调用量;
- 进行费用结算。
在生产环境中,API Key 不应该直接暴露在客户端,而应该通过后端服务代理调用。
3. Model(模型选择)
大模型平台通常提供多个模型:例如:
GPT-5
Claude
DeepSeek
Gemini
Qwen
调用时指定:
{
"model": "xxx-model"
}
不同模型之间存在差异:
| 类型 | 特点 |
|---|---|
| 通用模型 | 综合能力强 |
| 推理模型 | 数学、逻辑能力强 |
| 编程模型 | 代码能力强 |
| 小模型 | 成本低、响应快 |
Agent 系统通常需要根据任务选择不同模型。
4. Messages(上下文消息)
现代大模型 API 通常采用消息结构:
[
{
"role":"system",
"content":"你是一个安全专家"
},
{
"role":"user",
"content":"分析这个漏洞"
}
]
其中:
system
定义模型行为:例如:
你是一名网络安全分析师user
用户输入:
分析SQL注入漏洞assistant
模型历史回复:
该漏洞属于注入类型漏洞这种设计使模型能够维持多轮上下文。
核心参数
除了输入内容,大模型 API 还提供生成控制参数。
Temperature
控制随机性:
temperature = 0
输出更加稳定。
temperature = 1
输出更加开放。
Max Tokens
限制最大输出长度:
{
"max_tokens":2048
}
用于控制:
- 成本;
- 响应长度;
- 输出范围。
Stream(流式输出)
普通请求:
等待模型生成完成
↓
一次返回全部结果
流式请求:
模型生成一点
↓
立即返回一点
↓
继续生成
类似 ChatGPT 打字效果。
与 Agent 的关系
单纯调用 API,只能完成一次问答:
用户
↓
LLM API
↓
回答
而 Agent 会在 API 基础上增加更多能力:

Agent 通过 API 调用模型,再结合:
- 长期记忆;
- 工具调用;
- 文件处理;
- 数据检索;
- 自动规划;
完成更加复杂的任务。因此,大模型 API 是构建 AI Agent 的基础设施。
二、API 接口风格
随着大语言模型生态快速发展,不同模型厂商逐渐形成了各自的 API 调用规范。目前,在 AI Agent 开发领域,主要存在两类具有代表性的接口风格:
OpenAI Compatible API 风格
Anthropic Messages API 风格
其中,OpenAI API 凭借较早的生态建设和广泛的开发者基础,逐渐成为事实上的接口兼容标准,大量第三方模型平台、私有化部署服务以及 AI 工具都提供 OpenAI Compatible 接口。
而 Anthropic 则针对 Claude 系列模型设计了独立的 Messages API,在上下文管理、工具调用等方面采用了不同的协议设计。理解两种 API 风格的区别,是构建 AI Agent、开发模型网关以及实现多模型适配的重要基础。
OpenAI Compatible API 风格
OpenAI API 最初为 GPT 系列模型服务设计,其核心思想是通过统一的消息结构描述人与模型之间的交互。对专业技术大模型平台API接口进行测试请求,>>接口文档<<:
POST /v1/chat/completions
请求示例:
{
"model": "gpt-5",
"messages": [
{
"role": "system",
"content": "你是一名AI助手"
},
{
"role": "user",
"content": "什么是AI Agent?"
}
]
}
OpenAI 风格使用 messages 数组保存完整上下文,通过不同 role 区分消息来源:

这种设计简单直观,因此被大量框架和工具采用。目前很多模型服务支持类似接口:
OpenAI
↓
DeepSeek
↓
Qwen
↓
Moonshot
↓
本地部署模型
只需要修改:
Base URL
API Key
Model Name
即可完成模型替换。
Anthropic Messages API 风格
Anthropic Claude API 没有采用 OpenAI 的 Chat Completions 格式,而是设计了自己的 Messages API。
接口:
POST /v1/messages
请求示例:
{
"model": "claude-sonnet",
"max_tokens": 2048,
"system": "你是一名AI助手",
"messages": [
{
"role": "user",
"content": "什么是AI Agent?"
}
]
}
Anthropic 的核心区别在于:System Prompt 不作为 messages 中的一部分,而是独立字段。结构如下:

这种设计将“模型行为控制”和“对话内容”进行了分离。
两种 API 接口风格对比
| 对比项 | OpenAI Compatible API | Anthropic API |
|---|---|---|
| 代表厂商 | OpenAI | Anthropic |
| 代表模型 | GPT 系列 | Claude 系列 |
| API 类型 | Chat Completion / Responses | Messages API |
| 请求路径 | /v1/chat/completions |
/v1/messages |
| 消息主体 | messages | messages |
| System Prompt | role=system | 独立 system 参数 |
| 用户输入 | role=user | role=user |
| 模型回复 | role=assistant | role=assistant |
| 最大输出控制 | max_tokens | max_tokens |
| 流式输出 | stream=true | stream=true |
| 工具调用 | tool_calls | tool_use |
| 工具返回 | tool message | tool_result |
| SDK | OpenAI SDK | Anthropic SDK |
| 生态兼容性 | 非常广泛 | Claude 生态为主 |
| 常见应用 | AI Agent、IDE、API Gateway | Claude Code、Claude Agent |
Tool Calling 接口差异
在 AI Agent 开发中,工具调用(Tool Calling)是两个接口最大的区别之一。
OpenAI Tool Calling
模型返回:
{
"tool_calls": [
{
"id": "call_xxx",
"function": {
"name": "search",
"arguments": "{}"
}
}
]
}
工具执行后:
{
"role": "tool",
"tool_call_id": "call_xxx",
"content": "搜索结果"
}
Anthropic Tool Use
Claude 返回:
{
"type": "tool_use",
"id": "toolu_xxx",
"name": "search",
"input": {}
}
工具返回:
{
"type": "tool_result",
"tool_use_id": "toolu_xxx",
"content": "搜索结果"
}
两者实现目标相同:

但协议格式不同,因此 Agent 框架需要进行适配。
多模型 Agent 中的 API 适配层
在实际企业级 Agent 系统中,通常不会直接绑定某一种 API,而是在中间增加模型适配层:

适配层负责:
请求格式转换;
消息结构映射;
Tool Calling 转换;
参数统一;
Token 统计;
错误处理。
例如:

这样,上层 Agent 不需要关心底层模型接口差异。
为什么 OpenAI Compatible 成为主流
虽然不同厂商拥有不同 API 规范,但 OpenAI Compatible API 已经形成较强生态优势:大量 AI 工具默认支持 OpenAI 格式。更换模型通常只需要修改:
Base URL
API Key
Model
因此,在现代 AI Agent 工程实践中,常见架构是:
上层采用 OpenAI Compatible 标准降低接入复杂度,底层通过 Adapter 适配不同厂商模型接口。
这也是当前多模型 Agent 平台、AI IDE 和企业级大模型应用的主流设计方式。
接下里就进入操作阶段,小白同学请跟着一步一步操作!
三、Trae IDE/Work 对接
下载 Trae IDE/Work、并且先登录默认账号,默认账号有免费限额和限速,我们需要先登入后才可以操作设置里的大模型服务商。

点开设置,模型-添加模型:

选择自定义配置:

选择Anthropic格式,填写API请求地址,模型名称和API密钥

模型名称直接在模型广场点复制按钮即可:

填写完成后提交:

在首页中的模型切换即可使用:

测试输入:hello,正常输出即可:

Work的对接工作成功。IDE的对接工作与Work类似,同样在设置-模型-自定义模型:

依次填入即可:

四、Codex 对接
需要预先安装CC Switch或openCodex,这里以OpenCodex为例:系统环境中需要预先安装Node.js环境,然后打开终端执行安装命令:
npm install -g @bitkyc08/opencodex
较新的 npm 可能会拦截 bun 的 postinstall 脚本(npm warn install-scripts ... blocked because they are not covered by allowScripts),导致捆绑的 Bun 运行时未能就绪。请允许 bun 脚本后重新安装。注意 npm 警告给出的缩写命令 缺少包名,会把当前目录重新安装进去,请始终显式写上包名:
npm install -g --allow-scripts=bun @bitkyc08/opencodex
sudo npm install -g --allow-scripts=bun @bitkyc08/opencodex
安装完成后运行启动命令:
ocx start
浏览器访问:http://localhost:10100/#dashboard

点击框选处进入,确保两项启动项都已确认安装成功,确保服务商可以正常注入Codex的模型列表

点击左侧边栏提供方-然后新建提供方:

弹出的模态框中,点击右下角添加自定义服务商:

填写对应的API URL、API请求风格、APIKey后点击左下角添加提供方:

如果报错:baseUrl hostname api.sec.hn.cn resolves to a benchmark address (198.18.0.41); set allowPrivateNetwork:true only for intentionally local/self-hosted providers,可能是开了代理软件,可以关闭或勾选允许本地/私有网络的复选框即可。点击添加后,将自动从服务商拉取可用模型列表:

重启Codex,在右下角模型切换列表即可看到模型成功注入:

测试可用性:
成功。
五、WorkBuddy 对接
下载并安装WoekBuddy,先登录,然后点头像处,然后点设置

点模型,添加模型

提供商选择自定义:

这里需要注意,WorkBuddy仅支持OpenAI格式接入,所以需要在API地址后面加入/v1路径:

思考模式这些可以选择性打开,确认后,点击保存测试:

可用,接入正常。
六、LobsterAI 对接
下载并安装LobsterAI,先登录,确保软件页面正常显示,然后在软件窗体左下角点击设置:

依次填入API KEY,API URL,选择接口模式,添加模型:


支持图像输出的记得勾选,模型上下文支持1M的要选择,保存后会自动重启软件,测试可用性:

对接成功。
七、Aionui 对接
下载并安装Aionui,点击软件窗体左下角的设置,进入设置选项:

选择模型,添加模型:

点手动安装,然后填入API接口URL和apikey,会自动读取可用模型:

点击确定即可,此软件有多Agent协作的能力,我们进行测试:

成功至此,API接口对接的教程涵盖目前主要使用的Agent场景。
八、Reasonix 对接
下载并打开Reasonix,点击设置:

选择模型-接入-自定义服务商

点击测试并获取模型后,保存即可:

测试使用,成功。
九、Reasonix对接Yakit、TscanPlus,打造渗透测试超级中心

MCP设置中添加Yakit的MCP,Yakit MCP开启开关:

选择xsec-cyper-std、deepsecs-flash等希灵AI调整的网络安全大模型,输入以下提示词进行安装渗透测试武器库:
# 角色
你是「渗透测试武器库自建专家」。任务:在当前主机上从零搭建一套完整可用的渗透测试环境
(方法论 Skill 库 + 工具武器库),全程自动化、幂等可重跑,最终输出安装报告。
本机是已授权的渗透/红队测试工作机;所有安装仅限本机环境准备,不触网攻击任何第三方目标。
一次性授权确认后直接执行,不再重复询问;涉及内核级驱动、修改系统引导等重操作先报告再执行。
# 阶段 0 · 环境探测
检测 OS/发行版/架构/包管理器(apt / dnf / pacman / brew)与 sudo 权限。Kali 优先,非 Kali 按对应源降级。
# 阶段 1 · 方法论 Skill 库(全部克隆 --depth 1)
## 1.1 Black-cat(假设-证据驱动红队状态机,RECON ⇄ ENUMERATE ⇄ VALIDATE)
repo: https://github.com/0rangec3t/Black-cat
git clone --depth 1 https://github.com/0rangec3t/Black-cat.git /tmp/Black-cat
mkdir -p ~/.claude/skills
cp -r /tmp/Black-cat/skills/pentest-redteam ~/.claude/skills/
校验:~/.claude/skills/pentest-redteam/SKILL.md 存在且 frontmatter 合法;/skill 可加载(skill 名 pentest-redteam)
## 1.2 CyberSecurity-Skills(PTES 39 模块 / 195 技能知识库,AI Agent 原生接口)
repo: https://github.com/Hi-FullHouse/CyberSecurity-Skills
git clone --depth 1 https://github.com/Hi-FullHouse/CyberSecurity-Skills.git ~/tools/CyberSecurity-Skills
在 ~/.claude/skills/cybersecurity-skills/SKILL.md 写包装器,指示:
遇到渗透方法论/Checklist/技术速查需求时,用
python3 ~/tools/CyberSecurity-Skills/skill_query.py list-modules / search --keyword <词> / get-skill --id <ID>
校验:python3 ~/tools/CyberSecurity-Skills/skill_query.py validate 通过
## 1.3 附加知识库(全部装到 ~/tools/,供 skill 和后续阶段引用)
- PayloadsAllTheThings(全类型 Payload 速查) https://github.com/swisskyrepo/PayloadsAllTheThings
- OWASP WSTG(Web 测试方法论) https://github.com/OWASP/wstg
- HackTricks(渗透技巧百科离线版) https://github.com/HackTricks-wiki/hacktricks
- SecLists(世界级字典库) https://github.com/danielmiessler/SecLists
- nuclei-templates(漏洞检测模板库) https://github.com/projectdiscovery/nuclei-templates
- PEASS-ng(LinPEAS/WinPEAS 提权脚本) https://github.com/peass-ng/PEASS-ng
- GTFOBins(Unix 免提权利用清单) https://github.com/GTFOBins/GTFOBins.github.io
- LOLBAS(Windows 二进制利用清单) https://github.com/LOLBAS-Project/LOLBAS
# 阶段 2 · 基础依赖
apt install -y git curl wget unzip tar build-essential python3-pip python3-venv pipx golang cargo docker.io
pipx ensurepath && export PATH=$PATH:$HOME/go/bin:$HOME/.local/bin
# 阶段 3 · 武器库安装(ARSENAL)
每条规则:
- 先 command -v 检查,已装直接记录版本跳过(幂等);
- 优先级:apt(官方源) > pipx > go install > cargo install > GitHub Release > 源码编译;
- 失败记录原因,自动降级下一优先级,不中断整体流程;
- 所有 go 工具统一 go install <路径>@latest;所有 git 克隆 --depth 1。
## 3.1 信息收集 / OSINT
| 工具 | 仓库 | 安装 |
|---|---|---|
| theHarvester | https://github.com/laramies/theHarvester | apt theharvester |
| Recon-ng | https://github.com/lanmaster53/recon-ng | apt recon-ng |
| SpiderFoot | https://github.com/smicallef/spiderfoot | apt spiderfoot |
| Sherlock | https://github.com/sherlock-project/sherlock | pipx install sherlock |
| Holehe | https://github.com/megadose/holehe | pipx install holehe |
| GHunt | https://github.com/mxrch/GHunt | git clone 后 python3 install |
| social-analyzer | https://github.com/qeeqbox/social-analyzer | pipx install social-analyzer |
| Photon | https://github.com/s0md3v/Photon | git clone |
| Osintgram | https://github.com/Datalux/Osintgram | git clone |
| shodan / censys CLI | https://github.com/achillean/shodan-python | pipx install shodan censys |
| Maltego | 商业 | 官方安装包 |
## 3.2 子域名 / DNS / 资产测绘
| 工具 | 仓库 | 安装 |
|---|---|---|
| Amass | https://github.com/owasp-amass/amass | apt amass |
| subfinder | https://github.com/projectdiscovery/subfinder | go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest |
| assetfinder | https://github.com/tomnomnom/assetfinder | go install github.com/tomnomnom/assetfinder@latest |
| Findomain | https://github.com/Findomain/Findomain | GitHub Release |
| OneForAll | https://github.com/shmilylty/OneForAll | git clone + pipx |
| Sublist3r | https://github.com/aboul3la/Sublist3r | pipx install sublist3r |
| puredns | https://github.com/d3mondev/puredns | go install github.com/d3mondev/puredns/v2@latest |
| altdns | https://github.com/infosec-au/altdns | pipx install altdns |
| massdns | https://github.com/blechschmidt/massdns | apt massdns |
| dnsx | https://github.com/projectdiscovery/dnsx | go install github.com/projectdiscovery/dnsx/cmd/dnsx@latest |
| dnsrecon | https://github.com/darkoperator/dnsrecon | apt dnsrecon |
| fierce | https://github.com/mschwager/fierce | pipx install fierce |
| dnsenum | https://github.com/fwaeytens/dnsenum | apt dnsenum |
| dnstwist | https://github.com/elceef/dnstwist | pipx install dnstwist |
| httpx | https://github.com/projectdiscovery/httpx | go install github.com/projectdiscovery/httpx/cmd/httpx@latest |
| gowitness | https://github.com/sensepost/gowitness | go install github.com/sensepost/gowitness@latest |
| aquatone | https://github.com/michenriksen/aquatone | GitHub Release |
| EyeWitness | https://github.com/FortyNorthSecurity/EyeWitness | git clone |
| gau | https://github.com/lc/gau | go install github.com/lc/gau/v2/cmd/gau@latest |
| waybackurls | https://github.com/tomnomnom/waybackurls | go install github.com/tomnomnom/waybackurls@latest |
| katana | https://github.com/projectdiscovery/katana | go install github.com/projectdiscovery/katana/cmd/katana@latest |
| gospider | https://github.com/jaeles-project/gospider | go install github.com/jaeles-project/gospider@latest |
| hakrawler | https://github.com/hakluke/hakrawler | go install github.com/hakluke/hakrawler@latest |
| gf(参数匹配) | https://github.com/tomnomnom/gf | go install github.com/tomnomnom/gf@latest |
## 3.3 端口扫描 / 服务识别
| 工具 | 仓库 | 安装 |
|---|---|---|
| nmap | https://github.com/nmap/nmap | apt nmap |
| masscan | https://github.com/robertdavidgraham/masscan | apt masscan |
| zmap | https://github.com/zmap/zmap | apt zmap |
| naabu | https://github.com/projectdiscovery/naabu | go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest |
| RustScan | https://github.com/RustScan/RustScan | cargo install rustscan 或 Release |
| netdiscover | https://github.com/netdiscover-scanner/netdiscover | apt netdiscover |
| arp-scan | https://github.com/royhills/arp-scan | apt arp-scan |
| fping | https://github.com/schweikert/fping | apt fping |
| tlsx | https://github.com/projectdiscovery/tlsx | go install github.com/projectdiscovery/tlsx/cmd/tlsx@latest |
| testssl.sh | https://github.com/drwetter/testssl.sh | apt testssl.sh |
| sslscan | https://github.com/rbsec/sslscan | apt sslscan |
## 3.4 Web 资产 / 目录爆破 / 参数发现
| 工具 | 仓库 | 安装 |
|---|---|---|
| ffuf | https://github.com/ffuf/ffuf | go install github.com/ffuf/ffuf/v2@latest |
| gobuster | https://github.com/OJ/gobuster | apt gobuster |
| feroxbuster | https://github.com/epi052/feroxbuster | cargo install feroxbuster 或 Release |
| dirsearch | https://github.com/maurosoria/dirsearch | pipx install dirsearch |
| wfuzz | https://github.com/xmendez/wfuzz | apt wfuzz |
| Arjun | https://github.com/s0md3v/Arjun | pipx install arjun |
| ParamSpider | https://github.com/devanshbatham/ParamSpider | pipx install paramspider |
| WhatWeb | https://github.com/urbanadventurer/WhatWeb | apt whatweb |
| WPScan | https://github.com/wpscanteam/wpscan | apt wpscan |
| CMSeeK | https://github.com/Tuhinshubhra/CMSeeK | git clone + pipx |
| wafw00f | https://github.com/EnableSecurity/wafw00f | pipx install wafw00f |
| LinkFinder | https://github.com/GerbenJavado/LinkFinder | git clone + pipx |
| SecretFinder | https://github.com/m4ll0k/SecretFinder | git clone + pipx |
| TruffleHog | https://github.com/trufflesecurity/trufflehog | pipx install trufflehog |
| Gitleaks | https://github.com/gitleaks/gitleaks | go install github.com/gitleaks/gitleaks/v8@latest |
| Burp Suite / OWASP ZAP / Caido | https://github.com/zaproxy/zaproxy · https://github.com/Caido-Community/caido | apt zaproxy / Release |
## 3.5 Web 漏洞利用
| 工具 | 仓库 | 安装 |
|---|---|---|
| sqlmap | https://github.com/sqlmapproject/sqlmap | apt sqlmap |
| ghauri | https://github.com/r0oth3x49/ghauri | pipx install ghauri |
| NoSQLMap | https://github.com/codingo/NoSQLMap | git clone + pipx |
| XSStrike | https://github.com/s0md3v/XSStrike | pipx install xsstrike |
| dalfox | https://github.com/hahwul/dalfox | go install github.com/hahwul/dalfox/v2@latest |
| commix | https://github.com/commixproject/commix | pipx install commix |
| SSTImap | https://github.com/vladko312/SSTImap | pipx install sstimap |
| jwt_tool | https://github.com/ticarpi/jwt_tool | pipx install jwt-tool |
| ysoserial / ysoserial.net | https://github.com/frohoff/ysoserial · https://github.com/pwntester/ysoserial.net | GitHub Release |
| Gopherus | https://github.com/tarunkant/Gopherus | go install |
| smuggler | https://github.com/defparam/smuggler | git clone |
| git-dumper | https://github.com/arthaud/git-dumper | pipx install git-dumper |
## 3.6 漏洞扫描 / 漏洞管理
| 工具 | 仓库 | 安装 |
|---|---|---|
| nuclei | https://github.com/projectdiscovery/nuclei | go install github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest 后 nuclei -update-templates |
| nikto | https://github.com/sullo/nikto | apt nikto |
| searchsploit | https://gitlab.com/exploit-database/exploitdb | apt exploitdb |
| OpenVAS/gvm | 官方 | apt gvm |
| Trivy | https://github.com/aquasecurity/trivy | apt trivy |
| Grype | https://github.com/anchore/grype | apt grype 或 Release |
| Syft | https://github.com/anchore/syft | Release |
| osv-scanner | https://github.com/google/osv-scanner | go install github.com/google/osv-scanner/cmd/osv-scanner@latest |
| cve-bin-tool | https://github.com/intel/cve-bin-tool | pipx install cve-bin-tool |
| xray | https://github.com/chaitin/xray | GitHub Release |
## 3.7 密码攻击 / 口令爆破
| 工具 | 仓库 | 安装 |
|---|---|---|
| hashcat | https://github.com/hashcat/hashcat | apt hashcat |
| John the Ripper | https://github.com/openwall/john | apt john |
| hashid | https://github.com/psypanda/hashID | apt hashid |
| Name-That-Hash | https://github.com/HashPals/Name-That-Hash | pipx install name-that-hash |
| hydra | https://github.com/vanhauser-thc/thc-hydra | apt hydra |
| medusa | https://github.com/jmk-foofus/medusa | apt medusa |
| ncrack | https://github.com/nmap/ncrack | apt ncrack |
| crowbar | https://github.com/galkan/crowbar | apt crowbar |
| crunch | https://github.com/crunchsec/crunch | apt crunch |
| CeWL | https://github.com/digininja/CeWL | apt cewl |
| kwprocessor | https://github.com/hashcat/kwprocessor | apt kwprocessor |
| mimikatz | https://github.com/gentilkiwi/mimikatz | GitHub Release |
| evil-winrm | https://github.com/Hackplayers/evil-winrm | apt evil-winrm |
| Kerbrute | https://github.com/ropnop/kerbrute | GitHub Release |
| Responder | https://github.com/lgandx/Responder | apt responder |
| samdump2 / chntpw / ophcrack | 系统自带源 | apt samdump2 chntpw ophcrack |
## 3.8 无线 / 蓝牙 / RFID
| 工具 | 仓库 | 安装 |
|---|---|---|
| aircrack-ng | https://github.com/aircrack-ng/aircrack-ng | apt aircrack-ng |
| wifite | https://github.com/derv82/wifite | apt wifite |
| airgeddon | https://github.com/v1s1t0r1sh3r3/airgeddon | git clone |
| fluxion | https://github.com/FluxionNetwork/fluxion | git clone |
| wifiphisher | https://github.com/wifiphisher/wifiphisher | git clone |
| reaver | https://github.com/t6x/reaver-wps-fork-t6x | apt reaver |
| bully | https://github.com/aanarchyy/bully | apt bully |
| pixiewps | https://github.com/wiire-a/pixiewps | apt pixiewps |
| mdk4 | https://github.com/aircrack-ng/mdk4 | apt mdk4 |
| bettercap | https://github.com/bettercap/bettercap | apt bettercap |
| kismet | https://github.com/kismetwireless/kismet | apt kismet |
| hcxtools | https://github.com/ZerBea/hcxtools | apt hcxtools |
| ubertooth | https://github.com/greatscottgadgets/ubertooth | apt ubertooth |
| proxmark3 | https://github.com/RfidResearchGroup/proxmark3 | git clone + make |
## 3.9 嗅探 / 中间人 / 流量
| 工具 | 仓库 | 安装 |
|---|---|---|
| wireshark / tshark | https://gitlab.com/wireshark/wireshark | apt wireshark tshark |
| tcpdump | https://github.com/the-tcpdump-group/tcpdump | apt tcpdump tcpflow ngrep |
| termshark | https://github.com/gcla/termshark | apt termshark |
| mitmproxy | https://github.com/mitmproxy/mitmproxy | apt mitmproxy |
| mitm6 | https://github.com/dirkjanm/mitm6 | pipx install mitm6 |
| ettercap | https://github.com/Ettercap/ettercap | apt ettercap |
| dsniff(arpspoof/macof) | Kali 源 | apt dsniff |
| impacket(ntlmrelayx 全家桶) | https://github.com/fortra/impacket | pipx install impacket |
| responder | 见 3.7 | apt responder |
## 3.10 漏洞利用框架 / 二进制利用
| 工具 | 仓库 | 安装 |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework | apt metasploit-framework |
| searchsploit | 见 3.6 | apt exploitdb |
| pwntools | https://github.com/Gallopsled/pwntools | pipx install pwntools |
| ROPgadget | https://github.com/JonathanSalwan/ROPgadget | pipx install ropgadget |
| ropper | https://github.com/sashs/Ropper | apt ropper |
| one_gadget | https://github.com/david942j/one_gadget | gem install one_gadget |
| gdb + pwndbg/gef | https://github.com/pwndbg/pwndbg · https://github.com/hugsy/gef | apt gdb + git clone 安装脚本 |
| Ghidra | https://github.com/NationalSecurityAgency/ghidra | apt ghidra |
| radare2 / rizin | https://github.com/radareorg/radare2 · https://github.com/rizinorg/rizin | apt radare2 rizin |
| binwalk | https://github.com/ReFirmLabs/binwalk | apt binwalk foremost |
| checksec / upx | Kali 源 | apt checksec upx |
| angr | https://github.com/angr/angr | pipx install angr |
| z3 | https://github.com/Z3Prover/z3 | apt z3 |
| unicorn | https://github.com/unicorn-engine/unicorn | apt python3-unicorn |
| mingw-w64(交叉编译) | 系统源 | apt mingw-w64 |
## 3.11 权限提升(Linux / Windows)
| 工具 | 仓库 | 安装 |
|---|---|---|
| LinPEAS / WinPEAS | https://github.com/peass-ng/PEASS-ng | 下载 release 脚本 |
| linux-exploit-suggester | https://github.com/The-Z-Labs/linux-exploit-suggester | git clone |
| lse | https://github.com/diego-treitos/linux-smart-enumeration | git clone |
| pspy | https://github.com/DominicBreuker/pspy | GitHub Release |
| PowerUp / PowerView | https://github.com/PowerShellMafia/PowerSploit | git clone |
| Seatbelt | https://github.com/GhostPack/Seatbelt | GitHub Release |
| GTFOBins / LOLBAS | 见阶段 1.3 | 离线文档 |
## 3.12 后渗透 / 横向 / 域渗透
| 工具 | 仓库 | 安装 |
|---|---|---|
| impacket | https://github.com/fortra/impacket | pipx install impacket |
| NetExec(原 CME) | https://github.com/Pennyw0rth/NetExec | apt netexec 或 pipx install netexec |
| BloodHound / bloodhound-python | https://github.com/SpecterOps/BloodHound · https://github.com/dirkjanm/BloodHound.py | apt bloodhound + pipx bloodhound-python |
| ldapdomaindump | https://github.com/dirkjanm/ldapdomaindump | pipx install ldapdomaindump |
| adidnsdump | https://github.com/dirkjanm/adidnsdump | pipx install adidnsdump |
| mimikatz | 见 3.7 | GitHub Release |
| Rubeus | https://github.com/GhostPack/Rubeus | GitHub Release |
| Kekeo | https://github.com/gentilkiwi/kekeo | GitHub Release |
| Certipy | https://github.com/ly4k/Certipy | pipx install certipy-ad |
| PetitPotam | https://github.com/topotam/PetitPotam | git clone |
| printerbug(krbrelayx) | https://github.com/dirkjanm/krbrelayx | pipx install krbrelayx |
| Zerologon PoC | https://github.com/SecuraBV/CVE-2020-1472 | git clone |
| enum4linux / enum4linux-ng | https://github.com/CiscoCXSecurity/enum4linux · https://github.com/cddmp/enum4linux-ng | apt enum4linux + pipx enum4linux-ng |
| smbmap | https://github.com/ShawnDEvans/smbmap | apt smbmap |
| windapsearch | https://github.com/ropnop/windapsearch | pipx install windapsearch |
| aclpwn | https://github.com/fox-it/aclpwn.py | pipx install aclpwn |
| fscan | https://github.com/shadow1ng/fscan | GitHub Release |
| kscan | https://github.com/lz520520/kscan | GitHub Release |
## 3.13 隧道 / 代理 / 内网穿透
| 工具 | 仓库 | 安装 |
|---|---|---|
| proxychains4 | https://github.com/haad/proxychains | apt proxychains4 |
| socat / ncat | 系统源 | apt socat ncat |
| sshuttle | https://github.com/sshuttle/sshuttle | apt sshuttle |
| chisel | https://github.com/jpillora/chisel | go install github.com/jpillora/chisel@latest |
| ligolo-ng | https://github.com/nicocha30/ligolo-ng | GitHub Release |
| frp | https://github.com/fatedier/frp | GitHub Release |
| nps | https://github.com/ehang-io/nps | GitHub Release |
| gost | https://github.com/ginuerzh/gost | GitHub Release |
| Neo-reGeorg | https://github.com/L-codes/Neo-reGeorg | git clone |
| Stowaway | https://github.com/ph4nt0m01/Stowaway | GitHub Release |
| dnscat2 | https://github.com/iagox86/dnscat2 | git clone |
| iodine | https://github.com/yarrick/iodine | apt iodine |
| cloudflared | https://github.com/cloudflare/cloudflared | GitHub Release |
## 3.14 C2 / 远控
| 工具 | 仓库 | 安装 |
|---|---|---|
| Sliver | https://github.com/BishopFox/sliver | GitHub Release(含 make 编译) |
| Havoc | https://github.com/HavocFramework/Havoc | git clone + make |
| Mythic | https://github.com/its-a-feature/Mythic | docker compose |
| Covenant | https://github.com/cobbr/Covenant | dotnet build |
| Empire + Starkiller | https://github.com/BC-SECURITY/Empire · https://github.com/BC-SECURITY/Starkiller | git clone + install.sh |
| PoshC2 | https://github.com/nettitude/PoshC2 | apt poshc2 |
| Villain | https://github.com/t3l3machus/Villain | git clone + pipx |
| DeimosC2 | https://github.com/DeimosC2/DeimosC2 | git clone |
| Viper | https://github.com/FunnyWolf/Viper | git clone + docker |
## 3.15 免杀 / 载荷生成
| 工具 | 仓库 | 安装 |
|---|---|---|
| msfvenom | 见 3.10 | apt metasploit-framework |
| Shellter | https://www.shellterproject.com | apt shellter |
| Veil | https://github.com/Veil-Framework/Veil | git clone + setup |
| TheFatRat | https://github.com/Screetsec/TheFatRat | git clone + setup |
| unicorn(trustedsec) | https://github.com/trustedsec/unicorn | git clone |
| donut | https://github.com/TheWover/donut | git clone + make |
| sRDI | https://github.com/monoxgas/sRDI | git clone + make |
| pe2shc | https://github.com/hasherezade/pe_to_shellcode | git clone + make |
| ScareCrow | https://github.com/optiv/ScareCrow | go install |
| Nimcrypt | https://github.com/icyguider/Nimcrypt2 | git clone + nim 编译 |
| ThreatCheck | https://github.com/rasta-mouse/ThreatCheck | GitHub Release |
| DefenderCheck | https://github.com/matterpreter/DefenderCheck | GitHub Release |
## 3.16 社工 / 钓鱼
| 工具 | 仓库 | 安装 |
|---|---|---|
| GoPhish | https://github.com/gophish/gophish | GitHub Release |
| SET | https://github.com/trustedsec/social-engineer-toolkit | apt set |
| evilginx2/3 | https://github.com/kgretzky/evilginx2 | go install 或 Release |
| Modlishka | https://github.com/drk1wi/Modlishka | git clone + go build |
| Muraena | https://github.com/muraenateam/muraena | go install |
| pwndrop | https://github.com/kgretzky/pwndrop | GitHub Release |
## 3.17 移动安全
| 工具 | 仓库 | 安装 |
|---|---|---|
| apktool | https://github.com/iBotPeaches/Apktool | apt apktool |
| jadx | https://github.com/skylot/jadx | apt jadx |
| dex2jar | https://github.com/pxb1988/dex2jar | apt dex2jar |
| androguard | https://github.com/androguard/androguard | pipx install androguard |
| frida / frida-tools | https://github.com/frida/frida · https://github.com/frida/frida-tools | pipx install frida-tools |
| objection | https://github.com/sensepost/objection | pipx install objection |
| MobSF | https://github.com/MobSF/Mobile-Security-Framework-MobSF | git clone + docker |
| drozer | https://github.com/FSecureLABS/drozer | pipx install drozer |
| apkleaks | https://github.com/dwisiswant0/apkleaks | pipx install apkleaks |
| frida-ios-dump | https://github.com/AloneMonkey/frida-ios-dump | git clone |
| libimobiledevice / ipatool | https://github.com/libimobiledevice/libimobiledevice | apt libimobiledevice + Release |
## 3.18 云 / 容器 / K8s
| 工具 | 仓库 | 安装 |
|---|---|---|
| ScoutSuite | https://github.com/nccgroup/ScoutSuite | pipx install scoutsuite |
| Prowler | https://github.com/prowler-cloud/prowler | pipx install prowler |
| Pacu | https://github.com/RhinoSecurityLabs/pacu | pipx install pacu |
| Cloudsplaining | https://github.com/salesforce/cloudsplaining | pipx install cloudsplaining |
| Cloudfox | https://github.com/BishopFox/cloudfox | go install github.com/BishopFox/cloudfox@latest |
| MicroBurst | https://github.com/NetSPI/MicroBurst | git clone |
| Stormspotter | https://github.com/Azure/Stormspotter | git clone |
| AzureHound | https://github.com/BloodHoundAD/AzureHound | GitHub Release |
| ROADtools | https://github.com/dirkjanm/ROADtools | pipx install roadrecon |
| AADInternals | https://github.com/Gerenios/AADInternals | PowerShell 安装 |
| kube-hunter | https://github.com/aquasecurity/kube-hunter | pipx install kube-hunter |
| kubescape | https://github.com/kubescape/kubescape | apt kubescape 或 curl 安装 |
| kubeaudit | https://github.com/Shopify/kubeaudit | go install |
| checkov | https://github.com/bridgecrewio/checkov | pipx install checkov |
| tfsec | https://github.com/aquasecurity/tfsec | go install |
| Stratus Red Team | https://github.com/DataDog/stratus-red-team | go install 或 docker |
| CloudGoat | https://github.com/RhinoSecurityLabs/cloudgoat | git clone |
## 3.19 逆向 / 取证 / 隐写
| 工具 | 仓库 | 安装 |
|---|---|---|
| Ghidra / radare2 / rizin | 见 3.10 | apt |
| volatility3 | https://github.com/volatilityfoundation/volatility3 | pipx install volatility3 |
| sleuthkit + autopsy | https://github.com/sleuthkit/sleuthkit · https://github.com/sleuthkit/autopsy | apt sleuthkit autopsy |
| binwalk / foremost / bulk_extractor | https://github.com/ReFirmLabs/binwalk · https://github.com/simsong/bulk_extractor | apt binwalk foremost bulk-extractor |
| oletools(olevba) | https://github.com/decalage2/oletools | pipx install oletools |
| peepdf | https://github.com/jesparza/peepdf | git clone |
| exiftool | https://github.com/exiftool/exiftool | apt exiftool |
| steghide / zsteg / stegsolve | https://github.com/zed-0xff/zsteg | apt steghide + gem install zsteg |
| yara | https://github.com/VirusTotal/yara | apt yara |
| xortool | https://github.com/hellman/xortool | pipx install xortool |
| hashdeep | https://github.com/jessek/hashdeep | apt hashdeep |
## 3.20 数据库攻击
| 工具 | 仓库 | 安装 |
|---|---|---|
| sqlmap / ghauri / NoSQLMap | 见 3.5 | 同上 |
| redis-cli / mongo shell | 系统源 | apt redis-tools mongodb-clients |
| MySQL / MSSQL / Postgres 客户端 | 系统源 | apt default-mysql-client postgresql-client |
| Rogue Server / UNC 窃取脚本 | 见阶段 1 Black-cat database.md 技法 | 按文档实现 |
## 3.21 特殊协议(SNMP / LDAP / SMB / RDP / VoIP / ICS)
| 工具 | 仓库 | 安装 |
|---|---|---|
| snmpwalk / onesixtyone / braa | https://github.com/trailofbits/onesixtyone | apt snmp onesixtyone braa |
| ldapsearch / windapsearch | 见 3.12 | apt ldap-utils + pipx windapsearch |
| smbclient / smbmap / rpcclient | 见 3.12 | apt smbclient samba-common-bin |
| xfreerdp | 系统源 | apt freerdp2-x11 |
| sipvicious | https://github.com/EnableSecurity/sipvicious | apt sipvicious |
| enumiax | Kali 源 | apt enumiax |
| modbus-cli | https://github.com/tallakt/modbus_cli | pipx install modbus-cli |
| ISF(工控利用框架) | https://github.com/dark-lbp/isf | git clone |
## 3.22 字典 / Payload / 辅助
| 工具 | 仓库 | 安装 |
|---|---|---|
| SecLists | https://github.com/danielmiessler/SecLists | apt seclists |
| rockyou / fuzzdb | Kali 源 + https://github.com/fuzzdb-project/fuzzdb | apt wordlists + git clone |
| PayloadsAllTheThings | 见阶段 1.3 | git clone |
| nuclei-templates | 见阶段 1.3 | nuclei -update-templates |
| AntSword | https://github.com/AntSwordProject/antSword | Release |
| Godzilla(哥斯拉) | https://github.com/BeichenDream/Godzilla | Release |
| Behinder(冰蝎) | https://github.com/rebeyond/Behinder | Release |
| Weevely | https://github.com/epinna/weevely3 | pipx install weevely |
| Faraday | https://github.com/infobyte/faraday | apt faraday |
| CherryTree | https://github.com/giuspen/cherrytree | apt cherrytree |
| Dradis | https://github.com/dradis/dradis-ce | git clone |
# 阶段 4 · 校验与报告
- 全量冒烟测试:逐个执行 <工具> --version / -h,记录版本;
- Skill 校验:/skill 确认 pentest-redteam、cybersecurity-skills 可加载;skill_query.py validate 通过;
- 输出 ~/ARSENAL_MANIFEST.md:工具名 | 版本 | 路径 | 状态(OK/FAIL/降级) | 来源(repo URL);
- 汇报失败项原因、已自动重试的降级路径、可手动修复的命令;
- 汇报已装 Skill 及其调用方式(/skill pentest-redteam、skill_query.py 用法)。
# 约束
- 全程幂等:重复执行自动跳过,不报错;
- 不自动启动 C2/监听/反弹服务,只安装框架;
- 优先走已配置的代理/镜像源(如 GOPROXY、pip 镜像);
- 所有 git 克隆使用 --depth 1;
- 不在无授权目标上运行任何扫描或利用动作。
实战测试场景效果:
nday挖掘:

0day挖掘:

更多推荐



所有评论(0)