daker52/opensource-pentest-toolkit

GitHub: daker52/opensource-pentest-toolkit

一份结构化的开源渗透测试工具指南,收录了35+款主流安全工具并详细介绍了其功能、原理及使用方法。

Stars: 0 | Forks: 0

# 🔴 开源渗透测试工具包 **一份精心整理的英文指南,介绍了 30 多个托管在 GitHub 上的渗透测试工具——涵盖其功能、工作原理以及如何负责任地使用它们。** [![License: MIT](https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge)](./LICENSE) [![OWASP](https://img.shields.io/badge/OWASP-Testing%20Guide-000?style=for-the-badge&logo=owasp)](https://owasp.org/www-project-web-security-testing-guide/) [![PTES](https://img.shields.io/badge/Methodology-PTES-8b5cf6?style=for-the-badge)](http://www.pentest-standard.org/) [![GitHub](https://img.shields.io/github/stars/daker52/opensource-pentest-toolkit?style=social)](https://github.com/daker52/opensource-pentest-toolkit) [快速开始](#-quick-start) · [工具索引 (30+)](#-tool-index-by-category) · [如何阅读本指南](#-how-to-read-this-guide) · [方法论](./docs/METHODOLOGY.md) · [实验环境搭建](./docs/LAB-SETUP.md) · [法律与道德](./docs/LEGAL-AND-ETHICS.md)
## 这个仓库是什么? 这**不是一个单一的漏洞利用框架**——它是一本结构化的手册,专注于托管在 GitHub 上的开源渗透测试软件。每个条目都包含以下说明: 1. **目的** — 支持渗透测试的哪个阶段 2. **工作原理** — 用通俗的语言解释架构 3. **安装** — 在 Linux/macOS 上的典型设置 4. **用法** — 获取初步结果的最小命令 5. **何时使用** — 以及接下来该运行什么 你可以用它来构建工具链、准备认证考试(例如 OSCP、PNPT),或指导初级测试人员入门。 ### 相关仓库 | 仓库 | 作用 | |------|------| | **[Next.js App Router Security Lab](https://github.com/daker52/nextjs-app-router-security-lab)** | Next.js 漏洞实操与修复;将本指南中的工具映射到每个模块 | | **[Next.js Security Shield](https://github.com/daker52/Next.js---Security-shield-list-help)** | 完成实验后的生产级安全样板代码 | ## 🧭 如何阅读本指南 | 符号 | 含义 | |--------|---------| | 🔍 | 侦察 / OSINT | | 🌐 | Web 应用测试 | | 📡 | 网络 / 基础设施 | | 🏢 | Active Directory / 内部网络 | | 🔓 | 漏洞利用 / C2 | | ☁️ | 云与容器 | | 📱 | 移动端 | | 🔑 | 敏感信息 / 供应链 | | 📊 | 报告 / 自动化 | **典型流程:** 侦察 → 扫描 → 枚举 → 漏洞利用(验证) → 后渗透 → 报告。详情请参阅 [docs/METHODOLOGY.md](./docs/METHODOLOGY.md)。 ``` flowchart LR A[Planning & RoE] --> B[Recon] B --> C[Scanning] C --> D[Vuln Analysis] D --> E[Exploitation] E --> F[Post-Exploit] F --> G[Report] ``` ## ⚡ 快速开始 ``` git clone https://github.com/daker52/opensource-pentest-toolkit.git cd opensource-pentest-toolkit ``` 1. 阅读 [法律与道德](./docs/LEGAL-AND-ETHICS.md) 2. 按照 [实验环境搭建](./docs/LAB-SETUP.md) 搭建实验环境 3. 从下方索引中根据你的测试类型(Web / 网络 / AD / 云)挑选工具 **示例 — 首次 Web 侦察链(仅限已授权目标):** ``` subfinder -d example.com -silent | httpx -silent -status-code -title -tech-detect -o alive.txt katana -u https://www.example.com -d 3 -o urls.txt nuclei -l alive.txt -severity medium,high,critical ``` ## 📋 按类别划分的工具索引 | # | 工具 | 类别 | GitHub | |---|------|----------|--------| | 1 | Subfinder | 🔍 侦察 | [projectdiscovery/subfinder](https://github.com/projectdiscovery/subfinder) | | 2 | httpx | 🔍 侦察 | [projectdiscovery/httpx](https://github.com/projectdiscovery/httpx) | | 3 | Amass | 🔍 侦察 | [owasp-amass/amass](https://github.com/owasp-amass/amass) | | 4 | theHarvester | 🔍 侦察 | [laramies/theHarvester](https://github.com/laramies/theHarvester) | | 5 | Naabu | 📡 网络 | [projectdiscovery/naabu](https://github.com/projectdiscovery/naabu) | | 6 | Katana | 🌐 Web | [projectdiscovery/katana](https://github.com/projectdiscovery/katana) | | 7 | Nuclei | 🌐 Web | [projectdiscovery/nuclei](https://github.com/projectdiscovery/nuclei) | | 8 | OWASP ZAP | 🌐 Web | [zaproxy/zaproxy](https://github.com/zaproxy/zaproxy) | | 9 | sqlmap | 🌐 Web | [sqlmapproject/sqlmap](https://github.com/sqlmapproject/sqlmap) | | 10 | ffuf | 🌐 Web | [ffuf/ffuf](https://github.com/ffuf/ffuf) | | 11 | feroxbuster | 🌐 Web | [epi052/feroxbuster](https://github.com/epi052/feroxbuster) | | 12 | Dalfox | 🌐 Web | [hahwul/dalfox](https://github.com/hahwul/dalfox) | | 13 | Commix | 🌐 Web | [commixproject/commix](https://github.com/commixproject/commix) | | 14 | Nikto | 🌐 Web | [sullo/nikto](https://github.com/sullo/nikto) | | 15 | mitmproxy | 🌐 Web | [mitmproxy/mitmproxy](https://github.com/mitmproxy/mitmproxy) | | 16 | Nmap | 📡 网络 | [nmap/nmap](https://github.com/nmap/nmap) | | 17 | Masscan | 📡 网络 | [robertdavidgraham/masscan](https://github.com/robertdavidgraham/masscan) | | 18 | NetExec | 🏢 AD / 内部网络 | [Pennyw0rth/NetExec](https://github.com/Pennyw0rth/NetExec) | | 19 | Impacket | 🏢 AD / 内部网络 | [fortra/impacket](https://github.com/fortra/impacket) | | 20 | BloodHound CE | 🏢 AD / 内部网络 | [SpecterOps/BloodHound](https://github.com/SpecterOps/BloodHound) | | 21 | Responder | 🏢 AD / 内部网络 | [lgandx/Responder](https://github.com/lgandx/Responder) | | 22 | evil-winrm | 🏢 AD / 内部网络 | [Hackplayers/evil-winrm](https://github.com/Hackplayers/evil-winrm) | | 23 | PEASS-ng | 🔓 后渗透 | [peass-ng/PEASS-ng](https://github.com/peass-ng/PEASS-ng) | | 24 | Sliver | 🔓 C2 | [BishopFox/sliver](https://github.com/BishopFox/sliver) | | 25 | Havoc | 🔓 C2 | [HavocFramework/Havoc](https://github.com/HavocFramework/Havoc) | | 26 | Metasploit Framework | 🔓 漏洞利用 | [rapid7/metasploit-framework](https://github.com/rapid7/metasploit-framework) | | 27 | Hashcat | 🔑 密码 | [hashcat/hashcat](https://github.com/hashcat/hashcat) | | 28 | THC-Hydra | 🔑 密码 | [vanhauser-thc/thc-hydra](https://github.com/vanhauser-thc/thc-hydra) | | 29 | Trivy | ☁️ 云 | [aquasecurity/trivy](https://github.com/aquasecurity/trivy) | | 30 | Prowler | ☁️ 云 | [prowler-cloud/prowler](https://github.com/prowler-cloud/prowler) | | 31 | ScoutSuite | ☁️ 云 | [NCCGroup/ScoutSuite](https://github.com/NCCGroup/ScoutSuite) | | 32 | Gitleaks | 🔑 敏感信息 | [gitleaks/gitleaks](https://github.com/gitleaks/gitleaks) | | 33 | TruffleHog | 🔑 敏感信息 | [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) | | 34 | MobSF | 📱 移动端 | [MobSF/Mobile-Security-Framework-MobSF](https://github.com/MobSF/Mobile-Security-Framework-MobSF) | | 35 | Frida | 📱 移动端 | [frida/frida](https://github.com/frida/frida) | ## 🔍 侦察与 OSINT ### 1. Subfinder — 被动子域名发现 | | | |---|---| | **仓库** | https://github.com/projectdiscovery/subfinder | | **语言** | Go | **功能** — 使用被动来源(证书透明度、DNS 存档、API)枚举子域名。默认情况下,不会向目标发送任何数据包。 **工作原理** — 汇总配置的 OSINT 提供者的结果,进行去重,并输出主机名。配合 `httpx` 使用,可找出哪些主机处于活动状态。 **安装** ``` go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest ``` **用法** ``` subfinder -d example.com -all -recursive -o subs.txt cat subs.txt | httpx -silent -o live.txt ``` **何时使用** — 外部 Web/网络测试的第一步;为漏洞赏金计划建立范围列表(需在计划规则范围内)。 ### 2. httpx — 大规模 HTTP 探测 | | | |---|---| | **仓库** | https://github.com/projectdiscovery/httpx | | **语言** | Go | **功能** — 接收 URL/主机列表,并返回状态码、标题、技术栈、TLS 信息和重定向情况。 **工作原理** — 带有过滤器的并发 HTTP 客户端;使用类似 Wappalyzer 的指纹识别技术丰富响应信息。 **安装** ``` go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest ``` **用法** ``` httpx -l subs.txt -status-code -title -tech-detect -follow-redirects -o alive.txt ``` **何时使用** — 在子域名发现之后;在运行 Nuclei、手动测试或爬取之前。 ### 3. OWASP Amass — 深度攻击面映射 | | | |---|---| | **仓库** | https://github.com/owasp-amass/amass | | **语言** | Go | **功能** — 映射组织结构:子域名、ASN、网段、DNS 记录及相关基础设施。 **工作原理** — 结合抓取、DNS 暴力破解(可选)和 API 集成,构建以图为导向的数据模型。 **安装** — 参见 [INSTALL.md](https://github.com/owasp-amass/amass/blob/master/doc/install.md)(下载 releases 或使用 Docker)。 **用法** ``` amass enum -d example.com -o amass.txt amass intel -org "Example Corp" ``` **何时使用** — 大范围的外部测试;红队发现阶段。 ### 4. theHarvester — 邮箱与主机 OSINT | | | |---|---| | **仓库** | https://github.com/laramies/theHarvester | | **语言** | Python | **功能** — 从搜索引擎和公开来源收集邮箱、子域名、主机和 URL。 **工作原理** — 查询第三方来源(Bing、DuckDuckGo、带有 API 密钥的 Shodan 等)并合并结果。 **安装** ``` git clone https://github.com/laramies/theHarvester.git cd theHarvester pip install -r requirements.txt ``` **用法** ``` python theHarvester.py -d example.com -b duckduckgo -l 500 ``` **何时使用** — 社会工程准备(需遵守 RoE)、用于密码喷射的用户名/邮箱列表**仅在获得授权时使用**。 ## 📡 网络扫描 ### 5. Naabu — 快速端口扫描器 | | | |---|---| | **仓库** | https://github.com/projectdiscovery/naabu | | **语言** | Go | **功能** — 快速识别多台主机上开放的 TCP/UDP 端口。 **工作原理** — 采用 SYN/CONNECT 扫描,可选择与 Nmap 集成以进行服务检测。 **用法** ``` naabu -host 10.10.10.0/24 -top-ports 1000 -o ports.txt nmap -sV -iL ports.txt -oA services ``` **何时使用** — 在已知主机列表后的外部或内部网络发现。 ### 6. Nmap — 网络发现与服务指纹识别 | | | |---|---| | **仓库** | https://github.com/nmap/nmap | | **语言** | C | **功能** — 行业标准的扫描器:存活主机、开放端口、服务版本、OS 猜测、NSE 脚本。 **工作原理** — 原始数据包 + 探测签名;**NSE**(Nmap 脚本引擎)运行 Lua 脚本进行漏洞检查。 **安装** — `sudo apt install nmap` (Kali/Debian) 或从 [nmap.org](https://nmap.org/) 下载。 **用法** ``` nmap -sC -sV -oA scan 10.10.10.5 nmap --script vuln -p80,443 target.example ``` **何时使用** — 每次基础设施测试;验证 Naabu/Masscan 的结果。 ### 7. Masscan — 互联网级端口扫描 | | | |---|---| | **仓库** | https://github.com/robertdavidgraham/masscan | | **语言** | C | **功能** — 以极高的速率发送 SYN 数据包(在合适的硬件上每秒可达数百万个端口)。 **工作原理** — 无状态扫描;需要仔细设置速率限制(`--rate`)以避免网络中断。 **用法** ``` masscan 10.10.10.0/24 -p1-65535 --rate 1000 -oL masscan.txt ``` **何时使用** — 大范围 CIDR 发现**仅在明确批准后进行**;随后使用 Nmap 进行服务检测。 ## 🌐 Web 应用测试 ### 8. Katana — Web 爬虫 | | | |---|---| | **仓库** | https://github.com/projectdiscovery/katana | | **语言** | Go | **功能** — 爬取网站以获取 URL、JS endpoint、表单和参数(可选无头模式)。 **工作原理** — 解析 HTML/JS;控制深度;输出用于模糊测试和 Nuclei 的唯一 endpoint。 **用法** ``` katana -u https://app.example.com -d 5 -jc -o urls.txt ``` **何时使用** — 在运行 `ffuf` / `nucle` / 类似 Burp 的手动测试之前。 ### 9. Nuclei — 基于模板的漏洞扫描器 | | | |---|---| | **仓库** | https://github.com/projectdiscovery/nuclei | | **模板** | https://github.com/projectdiscovery/nuclei-templates | **功能** — 运行 YAML 模板来检测 CVE、配置错误、暴露的面板以及针对特定技术的检查。 **工作原理** — 模板中定义了 HTTP/DNS/TCP 请求;匹配器可大规模检测易受攻击的响应。 **安装** ``` go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest nuclei -update-templates ``` **用法** ``` nuclei -l alive.txt -severity high,critical -o findings.txt nuclei -u https://app.example.com -t exposures/ ``` **何时使用** — 广泛的自动化扫描;在报告之前,**务必手动验证**发现的结果。 ### 10. OWASP ZAP — DAST 代理与扫描器 | | | |---|---| | **仓库** | https://github.com/zaproxy/zaproxy | | **语言** | Java | **功能** — 拦截 HTTP 流量,爬取应用,运行主动/被动扫描,支持自动化(API、CI)。 **工作原理** — 中间人(MITM)代理;被动规则标记可疑的标头/Cookie;主动扫描发送攻击 payload。 **用法** ``` # Docker docker run -u zap -p 8080:8080 -p 8090:8090 zaproxy/zap-stable # 配置浏览器代理到 localhost:8080;浏览目标应用 ``` **何时使用** — 手动 Web 测试、CI pipeline、作为 Nuclei 的补充。 ### 11. sqlmap — SQL 注入自动化 | | | |---|---| | **仓库** | https://github.com/sqlmapproject/sqlmap | | **语言** | Python | **功能** — 检测并利用 SQL 注入;提取数据、文件、获取 OS shell(如果可能)。 **工作原理** — 发送精心构造的参数;对比响应;支持多种 DBMS 后端和 tamper 脚本。 **用法** ``` sqlmap -u "https://app.example/item?id=1" --batch --risk 1 --level 1 sqlmap -r request.txt -p id --dbs ``` **何时使用** — 已确认或怀疑存在 SQLi;在生产环境中应保持**低风险/级别**,除非 RoE 允许进行激进测试。 ### 12. ffuf — 快速 Web 模糊测试工具 | | | |---|---| | **仓库** | https://github.com/ffuf/ffuf | | **语言** | Go | **功能** — 暴力破解路径、参数、vhost 和标头。 **工作原理** — 使用 `FUZZ` 关键字替换进行并发请求;按大小/状态码/字数进行过滤。 **用法** ``` ffuf -w /usr/share/wordlists/dirb/common.txt -u https://app.example/FUZZ -mc 200,301,302 ffuf -w hosts.txt -u https://FUZZ.example.com -H "Host: FUZZ.example.com" ``` **何时使用** — 发现隐藏目录、API 版本控制、发现虚拟主机。 ### 13. feroxbuster — 递归内容发现 | | | |---|---| | **仓库** | https://github.com/epi052/feroxbuster | | **语言** | Rust | **功能** — 目录/文件暴力破解,可自动递归进入已发现的文件夹。 **工作原理** — 异步 HTTP;可配置字典、扩展名和状态码过滤。 **用法** ``` feroxbuster -u https://app.example -w wordlist.txt -x php,asp,aspx -C 404 ``` **何时使用** — 作为 `ffuf` 的替代或补充,用于深度内容发现。 ### 14. Dalfox — XSS 参数分析器 | | | |---|---| | **仓库** | https://github.com/hahwul/dalfox | | **语言** | Go | **功能** — 在参数和表单中查找反射型/存储型/DOM 型 XSS 向量。 **工作原理** — 参数挖掘 + payload 注入 + 验证响应中的回显。 **用法** ``` dalfox url "https://app.example/search?q=test" cat urls.txt | dalfox pipe ``` **何时使用** — 在爬取之后;在进行手动利用之前进行专注的 XSS 扫描。 ### 15. Commix — 命令注入漏洞利用 | | | |---|---| | **仓库** | https://github.com/commixproject/commix | | **语言** | Python | **功能** — 自动检测并利用 OS 命令注入漏洞。 **工作原理** — 将 shell 元字符注入参数中;评估基于时间/盲注/基于输出的结果。 **用法** ``` python commix.py -u "https://app.example/ping?ip=127.0.0.1" --batch ``` **何时使用** — 将输入传递给系统命令的参数(如 ping、traceroute、图像处理器)。 ### 16. Nikto — Web 服务器扫描器 | | | |---|---| | **仓库** | https://github.com/sullo/nikto | | **语言** | Perl | **功能** — 检查过时的软件、危险文件和常见的服务器配置错误。 **用法** ``` nikto -h https://app.example -o nikto.html -Format html ``` **何时使用** — 快速的服务器级别检查;预计会有较多干扰项——需手动对结果进行分类筛选。 ### 17. mitmproxy — 交互式 HTTPS 代理 | | | |---|---| | **仓库** | https://github.com/mitmproxy/mitmproxy | | **语言** | Python | **功能** — 拦截、修改和重放 HTTP/2/WebSocket 流量;支持使用 Python 编写脚本。 **工作原理** — 使用受信任 CA 的 TLS MITM;支持 CLI(`mitmproxy`)、Web(`mitmweb`)或 dump 模式。 **用法** ``` mitmproxy --listen-port 8080 # 配置浏览器/系统代理;安装 mitmproxy CA 证书 ``` **何时使用** — 深度手动分析、移动应用流量(需设备证书)、自定义自动化。 ## 🏢 Active Directory 与内部网络 ### 18. NetExec (nxc) — 网络服务的瑞士军刀 | | | |---|---| | **仓库** | https://github.com/Pennyw0rth/NetExec | | **语言** | Python | **功能** — SMB、WinRM、MSSQL、LDAP 枚举;凭据喷射;命令执行(限授权测试)。 **工作原理** — 模块化协议库;在各个服务中使用已知的凭据/哈希(CrackMapExec 的继任者)。 **用法** ``` nxc smb 10.10.10.0/24 --shares -u '' -p '' nxc winrm 10.10.10.50 -u admin -p 'Password123!' -x whoami ``` **何时使用** — 内部 Windows 域;获取初始访问权限后的横向移动映射。 ### 19. Impacket — Python 协议实现 | | | |---|---| | **仓库** | https://github.com/fortra/impacket | | **语言** | Python | **功能** — 用于 SMB、Kerberos、MS-RPC 的脚本(例如 `secretsdump`、`psexec`、`GetNPUsers`)。 **工作原理** — 纯 Python 实现的 Microsoft 协议;被许多其他工具使用。 **用法** ``` impacket-psexec corp/admin@10.10.10.50 impacket-secretsdump corp/admin@10.10.10.10 GetNPUsers.py corp.local/ -usersfile users.txt -no-pass ``` **何时使用** — AD 攻击、中继场景(实验室环境)、转储凭据**需在获得合法授权下进行**。 ### 20. BloodHound — AD 攻击路径分析 | | | |---|---| | **仓库** | https://github.com/SpecterOps/BloodHound | | **收集器** | [BloodHound Community Edition 文档](https://bloodhound.specterops.io/) | **功能** — 将 Active Directory 的关系绘制成图,以寻找获取 Domain Admin 的路径。 **工作原理** — 摄取 LDAP/ACE 数据;Neo4j 图数据库查询可揭示 `GenericAll`、可被 Kerberoast 的用户等信息。 **用法** ``` # 收集器示例 (SharpHound / bloodhound-python) bloodhound-python -u user@corp.local -p 'pass' -d corp.local -ns 10.10.10.1 -c all # 导入 ZIP 到 BloodHound UI ``` **何时使用** — 每次获取域用户访问权限后的内部 AD 测试。 ### 21. Responder — LLMNR/NBT-NS 毒化工具 | | | |---|---| | **仓库** | https://github.com/lgandx/Responder | | **语言** | Python | **功能** — 当 Windows 主机通过广播协议解析名称时,捕获 NTLMv1/v2 哈希。 **工作原理** — 在 LAN 上监听;响应名称查询;中继或转储哈希以便进行离线破解。 **用法** ``` sudo python Responder.py -I eth0 -dwPv ``` **何时使用** — 仅限内部测试;**如果不在范围内请禁用**(对老旧网络影响极大)。 ### 22. evil-winrm — WinRM shell 客户端 | | | |---|---| | **仓库** | https://github.com/Hackplayers/evil-winrm | | **语言** | Ruby | **功能** — 提供交互式 WinRM 会话,包含上传/下载和脚本辅助功能。 **用法** ``` evil-winrm -i 10.10.10.50 -u administrator -p 'Password123!' ``` **何时使用** — 当 WinRM (5985/5986) 处于开放状态并获取了有效凭据时。 ## 🔓 后渗透与 C2(授权红队测试) ### 23. PEASS-ng — 权限提升脚本 | | | |---|---| | **仓库** | https://github.com/peass-ng/PEASS-ng | | **包含** | LinPEAS, WinPEAS, lin/win 枚举工具 | **功能** — 在 Linux/Windows/macOS 上枚举配置错误、弱权限和已知的权限提升向量。 **用法** ``` # 在目标机器 (实验环境) 上,传输脚本然后: ./linpeas.sh # 或者在授权的实验环境中使用一行命令下载 ``` **何时使用** — 获取初始立足点之后;在请求 kernel 漏洞利用或转储凭据之前。 ### 24. Sliver — 现代 C2 框架 | | | |---|---| | **仓库** | https://github.com/BishopFox/sliver | | **语言** | Go | **功能** — 用于红队行动的命令与控制:植入体、mTLS/WireGuard、多人协作。 **工作原理** — 服务端生成植入体;操作员通过 CLI 交互;支持 BOF 和扩展。 **用法** ``` # Server sliver-server # Client sliver-client generate --http 10.10.10.1:80 --os windows --save /tmp/implant.exe ``` **何时使用** — **仅限经过批准的红队**测试;严禁针对未授权的系统使用。 ### 25. Havoc — 灵活的后渗透 C2 | | | |---|---| | **仓库** | https://github.com/HavocFramework/Havoc | | **语言** | C / C++ / Python | **功能** — Teamserver + 跨平台植入体 + 适用于 Windows 的 demon 代理。 **何时使用** — 在已授权的对抗模拟中,作为 Cobalt/Sliver 的替代方案。 ### 26. Metasploit Framework — 漏洞利用与模块平台 | | | |---|---| | **仓库** | https://github.com/rapid7/metasploit-framework | | **语言** | Ruby | **功能** — 提供数以千计的漏洞利用模块、辅助扫描器、payload、编码器和后渗透模块。 **工作原理** — `msfconsole` 选择模块;结合 payload 与 handler;与 Nmap 集成。 **用法** ``` msfconsole -q -x "use exploit/...; set RHOSTS 10.10.10.5; run" ``` **何时使用** — 在实验环境中利用已知的 CVE;在已修补的目标上仔细验证 Metasploit 模块。 ## 🔑 密码攻击 ### 27. Hashcat — GPU 密码恢复 | | | |---|---| | **仓库** | https://github.com/hashcat/hashcat | | **语言** | C | **功能** — 使用 CPU/GPU 破解 NTLM、bcrypt、WPA 和数百种哈希类型。 **用法** ``` hashcat -m 1000 ntlm_hashes.txt wordlist.txt -r rules/best64.rule ``` **何时使用** — 对在测试期间**合法**捕获的哈希进行离线破解。 ### 28. THC-Hydra — 在线登录暴力破解 | | | |---|---| | **仓库** | https://github.com/vanhauser-thc/thc-hydra | | **语言** | C | **功能** — 针对 SSH、RDP、HTTP 表单、SMB 等进行并行化密码猜测。 **用法** ``` hydra -l admin -P passwords.txt ssh://10.10.10.50 ``` **何时使用** — 仅限在设置**速率限制**并获得 RoE 批准的情况下使用;在 AD 环境中存在账户锁定风险。 ## ☁️ 云与容器 ### 29. Trivy — 漏洞与配置错误扫描器 | | | |---|---| | **仓库** | https://github.com/aquasecurity/trivy | | **语言** | Go | **功能** — 扫描容器镜像、文件系统、IaC(Terraform/K8s)和代码仓库以查找 CVE 和敏感信息。 **用法** ``` trivy image myapp:latest trivy fs --scanners vuln,secret,misconfig . trivy k8s --report summary cluster ``` **何时使用** — DevSecOps、云渗透测试、CI 检测关卡。 ### 30. Prowler — AWS/Azure/GCP 安全评估 | | | |---|---| | **仓库** | https://github.com/prowler-cloud/prowler | | **语言** | Python | **功能** — 针对云 API 执行数百项检查(CIS 基准、配置错误、日志记录漏洞)。 **用法** ``` prowler aws --profile assessment prowler azure --az-cli-auth ``` **何时使用** — 使用只读的评估者凭据进行云配置审查。 ### 31. ScoutSuite — 多云安全审计 | | | |---|---| | **仓库** | https://github.com/NCCGroup/ScoutSuite | | **语言** | Python | **功能** — 生成跨 AWS、Azure、GCP、Oracle 等平台的危险云设置的 HTML 报告。 **用法** ``` scout aws --profile default --report-dir ./scout-report ``` **何时使用** — 适合向管理层展示的云环境概览;与 Prowler 结合使用以获取深度信息。 ## 🔑 敏感信息与供应链 ### 32. Gitleaks Git 敏感信息扫描器 | | | |---|---| | **仓库** | https://github.com/gitleaks/gitleaks | | **语言** | Go | **功能** — 扫描 commit 和文件以查找 API 密钥、token 和密码。 **用法** ``` gitleaks detect --source . -v gitleaks protect --staged ``` **何时使用** — Pre-commit 钩子、CI、代码仓库审计。 ### 33. TruffleHog — 高熵敏感信息验证 | | | |---|---| | **仓库** | https://github.com/trufflesecurity/trufflehog | | **语言** | Go | **功能** — 扫描 Git 历史,并进行**主动验证**(尽可能调用提供者的 API 进行验证)。 **用法** ``` trufflehog git file://. --only-verified ``` **何时使用** — 在 monorepo 和组织范围的 GitHub 扫描中进行深度敏感信息搜寻(需获得授权)。 ## 📱 移动应用安全 ### 34. MobSF — Mobile Security Framework | | | |---|---| | **仓库** | https://github.com/MobSF/Mobile-Security-Framework-MobSF | | **语言** | Python | **功能** — 对 APK/IPA 进行静态 + 动态分析;API 模糊测试;恶意软件指标检测。 **用法** ``` # 推荐使用 Docker docker run -it --rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf # 通过 http://localhost:8000 上传 APK ``` **何时使用** — Android/iOS 应用评估;配合 Frida 进行 runtime hook 以作补充。 ### 35. Frida — 动态插桩工具包 | | | |---|---| | **仓库** | https://github.com/frida/frida | | **语言** | C / JS | **功能** — 将 JavaScript 注入移动/桌面应用,以绕过 SSL Pinning、追踪 API、修改逻辑。 **工作原理** — 设备上的 `frida-server` + 在 runtime hook 函数的 Python/CLI 脚本。 **用法** ``` frida-ps -U frida -U -f com.app.example -l bypass_ssl.js ``` **何时使用** — 在 MobSF 静态扫描之后的高级移动测试。 ## 🛠️ 构建你的工具链 | 测试类型 | 建议的最小技术栈 | |------------|-------------------------| | **外部 Web** | Subfinder → httpx → Katana → Nuclei → ZAP/mitmproxy → sqlmap | | **内部 AD** | Nmap → NetExec → BloodHound → Impacket → PEASS-ng | | **云** | Prowler + ScoutSuite + 对镜像/IaC 运行 Trivy | | **移动端** | MobSF + Frida | | **敏感信息审计** | 在 CI 中使用 Gitleaks + TruffleHog | 保留一本**测试笔记本**(记录命令、时间戳、范围 ID)以便进行清晰的报告。 ## 📚 更多学习资源 | 资源 | 链接 | |----------|------| | OWASP Web 安全测试指南 | https://owasp.org/www-project-web-security-testing-guide/ | | PTES 技术指南 | http://www.pentest-standard.org/index.php/PTES_Technical_Guidelines | | MITRE ATT&CK | https://attack.mitre.org/ | | HackTricks | https://book.hacktricks.xyz/ | | PayloadsAllTheThings | https://github.com/swisskyrepo/PayloadsAllTheThings | ## 🤝 参与贡献 发现链接失效或想添加工具 **#36**?提一个 issue 或附带以下内容的 PR: - 工具名称、类别、GitHub URL - 一段简短的“工作原理”介绍 - 安装说明与最小用法示例 ## 👤 维护者 **OndHa** ([@daker52](https://github.com/daker52)) · [wwwkkcode.cz](https://wwwkkcode.cz) ## 📝 许可证 MIT — 详见 [LICENSE](./LICENSE)。工具项目拥有其**独立的许可证**;使用前请务必检查各个仓库。
**如果这个仓库帮助你构建了更安全、更结构化的测试流程,请给个 ⭐。** *文档版本: 1.0 · 2026 年 5 月*
标签:CTI, 开源指南, 防御加固