Skip to content

x-glacier/kali-pentest / kali-pentest-zh

kali-pentest-zh

Flagged

通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。

FileKindSize
SKILL.mdskill md15.6 KB
references/cloud-native/README.mdmarkdown4.2 KB
references/cloud-native/tools/azurehound.mdmarkdown4.0 KB
references/cloud-native/tools/docker-bench-security.mdmarkdown1.9 KB
references/cloud-native/tools/kube-bench.mdmarkdown1.7 KB
references/cloud-native/tools/kubescape.mdmarkdown1.7 KB
references/cloud-native/tools/pacu.mdmarkdown3.0 KB
references/cloud-native/tools/peirates.mdmarkdown6.4 KB
references/cloud-native/tools/prowler.mdmarkdown1.5 KB
references/cloud-native/tools/scoutsuite.mdmarkdown1.2 KB
references/environment/README.mdmarkdown1.4 KB
references/environment/docker-mode-networking.mdmarkdown2.2 KB
references/environment/docker-mode-persistent-container.mdmarkdown3.8 KB
references/environment/docker-mode.mdmarkdown2.0 KB
references/environment/local-mode.mdmarkdown946 B
references/environment/server-mode.mdmarkdown4.1 KB
references/environment/state-files.mdmarkdown2.3 KB
references/exploitation/README.mdmarkdown9.6 KB
references/exploitation/tools/chisel.mdmarkdown3.2 KB
references/exploitation/tools/coercer.mdmarkdown2.5 KB
references/exploitation/tools/dns2tcp.mdmarkdown3.8 KB
references/exploitation/tools/evil-winrm.mdmarkdown2.9 KB
references/exploitation/tools/evilginx2.mdmarkdown2.2 KB
references/exploitation/tools/getsploit.mdmarkdown2.0 KB
references/exploitation/tools/gophish.mdmarkdown6.1 KB
references/exploitation/tools/impacket.mdmarkdown10.9 KB
references/exploitation/tools/iodine.mdmarkdown3.5 KB
references/exploitation/tools/ligolo-ng.mdmarkdown3.3 KB
references/exploitation/tools/metasploit.mdmarkdown11.0 KB
references/exploitation/tools/mitm6.mdmarkdown2.6 KB
references/exploitation/tools/msfconsole.mdmarkdown3.9 KB
references/exploitation/tools/msfvenom.mdmarkdown8.5 KB
references/exploitation/tools/mssqlpwner.mdmarkdown2.5 KB
references/exploitation/tools/netcat.mdmarkdown4.4 KB
references/exploitation/tools/odat.mdmarkdown3.0 KB
references/exploitation/tools/proxytunnel.mdmarkdown2.2 KB
references/exploitation/tools/routersploit.mdmarkdown2.9 KB
references/exploitation/tools/searchsploit.mdmarkdown4.7 KB
references/exploitation/tools/setoolkit.mdmarkdown1015 B
references/exploitation/tools/smbclient.mdmarkdown2.8 KB
references/exploitation/tools/socat.mdmarkdown2.8 KB
references/exploitation/tools/veil.mdmarkdown2.9 KB
references/forensics/README.mdmarkdown8.8 KB
references/forensics/tools/bulk-extractor.mdmarkdown4.5 KB
references/forensics/tools/chainsaw.mdmarkdown2.6 KB
references/forensics/tools/chkrootkit.mdmarkdown2.6 KB
references/forensics/tools/dc3dd.mdmarkdown2.9 KB
references/forensics/tools/dcfldd.mdmarkdown3.2 KB
references/forensics/tools/ddrescue.mdmarkdown3.6 KB
references/forensics/tools/exiftool.mdmarkdown2.5 KB
references/forensics/tools/foremost.mdmarkdown2.4 KB
references/forensics/tools/hashdeep.mdmarkdown3.5 KB
references/forensics/tools/plaso.mdmarkdown3.7 KB
references/forensics/tools/regripper.mdmarkdown3.4 KB
references/forensics/tools/rkhunter.mdmarkdown3.4 KB
references/forensics/tools/scalpel.mdmarkdown2.6 KB
references/forensics/tools/sleuthkit.mdmarkdown4.0 KB
references/forensics/tools/ssdeep.mdmarkdown3.1 KB
references/forensics/tools/steghide.mdmarkdown2.8 KB
references/forensics/tools/stegseek.mdmarkdown2.5 KB
references/forensics/tools/tcpdump.mdmarkdown2.8 KB
references/forensics/tools/tcpflow.mdmarkdown3.4 KB
references/forensics/tools/testdisk.mdmarkdown3.0 KB
references/forensics/tools/tshark.mdmarkdown3.0 KB
references/forensics/tools/volatility.mdmarkdown5.0 KB
references/forensics/tools/yara.mdmarkdown3.3 KB
references/information-gathering/README.mdmarkdown15.6 KB
references/information-gathering/tools/altdns.mdmarkdown1.9 KB
references/information-gathering/tools/amass.mdmarkdown9.1 KB
references/information-gathering/tools/arp-scan.mdmarkdown1.9 KB
references/information-gathering/tools/assetfinder.mdmarkdown1.9 KB
references/information-gathering/tools/autorecon.mdmarkdown2.9 KB
references/information-gathering/tools/certgraph.mdmarkdown3.3 KB
references/information-gathering/tools/cloud-enum.mdmarkdown2.1 KB
references/information-gathering/tools/cloudbrute.mdmarkdown2.1 KB
references/information-gathering/tools/dig.mdmarkdown2.3 KB
references/information-gathering/tools/dmitry.mdmarkdown2.0 KB
references/information-gathering/tools/dnsenum.mdmarkdown1.7 KB
references/information-gathering/tools/dnsgen.mdmarkdown1.5 KB
references/information-gathering/tools/dnsmap.mdmarkdown1.8 KB
references/information-gathering/tools/dnsrecon.mdmarkdown2.7 KB
references/information-gathering/tools/dnstwist.mdmarkdown3.0 KB
references/information-gathering/tools/dnsx.mdmarkdown2.8 KB
references/information-gathering/tools/eyewitness.mdmarkdown2.4 KB
references/information-gathering/tools/fierce.mdmarkdown2.5 KB
references/information-gathering/tools/finalrecon.mdmarkdown2.4 KB
references/information-gathering/tools/findomain.mdmarkdown2.5 KB
references/information-gathering/tools/fping.mdmarkdown2.3 KB
references/information-gathering/tools/getallurls.mdmarkdown2.4 KB
references/information-gathering/tools/gowitness.mdmarkdown4.8 KB
references/information-gathering/tools/h8mail.mdmarkdown3.9 KB
references/information-gathering/tools/hakrawler.mdmarkdown2.3 KB
references/information-gathering/tools/hosthunter.mdmarkdown2.6 KB
references/information-gathering/tools/httprobe.mdmarkdown2.1 KB
references/information-gathering/tools/httpx.mdmarkdown4.6 KB
references/information-gathering/tools/ldeep.mdmarkdown4.9 KB
references/information-gathering/tools/masscan.mdmarkdown3.8 KB
references/information-gathering/tools/massdns.mdmarkdown1.9 KB
references/information-gathering/tools/metagoofil.mdmarkdown3.0 KB
references/information-gathering/tools/naabu.mdmarkdown2.7 KB
references/information-gathering/tools/nbtscan.mdmarkdown2.2 KB
references/information-gathering/tools/netdiscover.mdmarkdown2.6 KB
references/information-gathering/tools/nmap.mdmarkdown8.4 KB
references/information-gathering/tools/p0f.mdmarkdown2.1 KB
references/information-gathering/tools/recon-ng.mdmarkdown6.6 KB
references/information-gathering/tools/sherlock.mdmarkdown3.7 KB
references/information-gathering/tools/shodan.mdmarkdown3.6 KB
references/information-gathering/tools/spiderfoot.mdmarkdown2.7 KB
references/information-gathering/tools/subfinder.mdmarkdown2.5 KB
references/information-gathering/tools/sublist3r.mdmarkdown1.9 KB
references/information-gathering/tools/theHarvester.mdmarkdown2.9 KB
references/information-gathering/tools/trufflehog.mdmarkdown3.1 KB
references/information-gathering/tools/wafw00f.mdmarkdown1.9 KB
references/information-gathering/tools/whatweb.mdmarkdown5.1 KB
references/information-gathering/tools/whois.mdmarkdown2.0 KB
references/password/README.mdmarkdown11.8 KB
references/password/tools/brutespray.mdmarkdown2.8 KB
references/password/tools/cewl.mdmarkdown2.1 KB
references/password/tools/changeme.mdmarkdown3.0 KB
references/password/tools/chntpw.mdmarkdown2.5 KB
references/password/tools/crowbar.mdmarkdown2.6 KB
references/password/tools/crunch.mdmarkdown2.7 KB
references/password/tools/fcrackzip.mdmarkdown2.3 KB
references/password/tools/gpp-decrypt.mdmarkdown2.6 KB
references/password/tools/hashcat.mdmarkdown4.6 KB
references/password/tools/hashid.mdmarkdown2.1 KB
references/password/tools/hydra.mdmarkdown4.4 KB
references/password/tools/john.mdmarkdown3.2 KB
references/password/tools/kerbrute.mdmarkdown2.8 KB
references/password/tools/medusa.mdmarkdown3.3 KB
references/password/tools/name-that-hash.mdmarkdown3.2 KB
references/password/tools/ncrack.mdmarkdown3.3 KB
references/password/tools/netexec.mdmarkdown3.2 KB
references/password/tools/patator.mdmarkdown2.2 KB
references/password/tools/pdfcrack.mdmarkdown2.9 KB
references/password/tools/rainbowcrack.mdmarkdown2.9 KB
references/password/tools/responder.mdmarkdown2.7 KB
references/playbooks/README.mdmarkdown8.1 KB
references/playbooks/active-directory.mdmarkdown14.0 KB
references/playbooks/api-security.mdmarkdown18.6 KB
references/playbooks/cloud-native-assessment.mdmarkdown17.6 KB
references/playbooks/external-attack-surface.mdmarkdown8.1 KB
references/playbooks/forensics-triage.mdmarkdown11.7 KB
references/playbooks/internal-network-protocols.mdmarkdown6.5 KB
references/playbooks/internal-network.mdmarkdown14.4 KB
references/playbooks/mobile-application.mdmarkdown9.8 KB
references/playbooks/password-audit.mdmarkdown9.0 KB
references/playbooks/post-exploitation.mdmarkdown11.4 KB
references/playbooks/reporting-workflow.mdmarkdown6.3 KB
references/playbooks/rfid-nfc.mdmarkdown7.2 KB
references/playbooks/source-code-audit.mdmarkdown8.4 KB
references/playbooks/voip-ics.mdmarkdown17.3 KB
references/playbooks/web-application.mdmarkdown14.7 KB
references/playbooks/wireless-assessment.mdmarkdown9.6 KB
references/post-exploitation/README.mdmarkdown11.0 KB
references/post-exploitation/tools/bloodhound.mdmarkdown4.8 KB
references/post-exploitation/tools/bloodhound.py.mdmarkdown4.0 KB
references/post-exploitation/tools/bloodyad.mdmarkdown4.1 KB
references/post-exploitation/tools/certipy-ad.mdmarkdown3.2 KB
references/post-exploitation/tools/dnscat2.mdmarkdown3.5 KB
references/post-exploitation/tools/dploot.mdmarkdown4.2 KB
references/post-exploitation/tools/havoc.mdmarkdown3.8 KB
references/post-exploitation/tools/hekatomb.mdmarkdown3.0 KB
references/post-exploitation/tools/krbrelayx.mdmarkdown7.3 KB
references/post-exploitation/tools/lapsdumper.mdmarkdown2.4 KB
references/post-exploitation/tools/linpeas.mdmarkdown3.6 KB
references/post-exploitation/tools/linux-exploit-suggester.mdmarkdown2.8 KB
references/post-exploitation/tools/lsassy.mdmarkdown2.8 KB
references/post-exploitation/tools/mimikatz.mdmarkdown4.2 KB
references/post-exploitation/tools/powershell-empire.mdmarkdown4.0 KB
references/post-exploitation/tools/powersploit.mdmarkdown5.5 KB
references/post-exploitation/tools/proxychains.mdmarkdown2.1 KB
references/post-exploitation/tools/pspy.mdmarkdown2.8 KB
references/post-exploitation/tools/pwncat.mdmarkdown6.4 KB
references/post-exploitation/tools/sliver.mdmarkdown1.4 KB
references/post-exploitation/tools/sshuttle.mdmarkdown3.2 KB
references/post-exploitation/tools/winpeas.mdmarkdown3.0 KB
references/reporting/README.mdmarkdown2.5 KB
references/reporting/tools/pandoc.mdmarkdown3.2 KB
references/reporting/tools/report-template.mdmarkdown8.5 KB
references/reverse-engineering/README.mdmarkdown5.6 KB
references/reverse-engineering/tools/apktool.mdmarkdown1.8 KB
references/reverse-engineering/tools/binwalk.mdmarkdown3.0 KB
references/reverse-engineering/tools/checksec.mdmarkdown3.5 KB
references/reverse-engineering/tools/dex2jar.mdmarkdown3.2 KB
references/reverse-engineering/tools/frida.mdmarkdown2.4 KB
references/reverse-engineering/tools/ghidra-headless.mdmarkdown3.0 KB
references/reverse-engineering/tools/jadx.mdmarkdown2.2 KB
references/reverse-engineering/tools/ldd.mdmarkdown1.9 KB
references/reverse-engineering/tools/nm.mdmarkdown2.3 KB
references/reverse-engineering/tools/objdump.mdmarkdown2.5 KB
references/reverse-engineering/tools/objection.mdmarkdown3.0 KB
references/reverse-engineering/tools/rabin2.mdmarkdown2.3 KB
references/reverse-engineering/tools/radare2.mdmarkdown1.3 KB
references/reverse-engineering/tools/readelf.mdmarkdown2.3 KB
references/reverse-engineering/tools/ropper.mdmarkdown4.1 KB
references/reverse-engineering/tools/strings.mdmarkdown2.3 KB
references/reverse-engineering/tools/xxd.mdmarkdown2.3 KB
references/rfid-nfc/README.mdmarkdown2.7 KB
references/rfid-nfc/tools/libnfc.mdmarkdown2.2 KB

references/information-gathering/README.md

View on GitHub
# 信息收集 & 侦察(Reconnaissance)

渗透测试的第一阶段,目标是在不触发告警的情况下,尽可能多地收集目标信息。分为**被动侦察**(不接触目标,纯 OSINT)和**主动侦察**(直接与目标交互)。

---

## Golden Path

当你明确目标时从此处开始;表格帮助你选择正确的工具链。

| 场景 | 首选工具链 | 何时不用 |
|------|----------|---------|
| 子域名被动发现 | `subfinder` → `dnsx` → `httpx` | 需要深度递归枚举和历史数据时用 `amass` |
| 端口扫描(大规模) | `naabu` → `nmap -sV` | 需要 UDP 时加 `nmap -sU` |
| 端口扫描(精确) | `nmap -sS -sV -sC` | — |
| DNS 全面枚举 | `dnsenum` 或 `dnsrecon` | 仅需快速 A/AAAA 记录时用 `dig` |
| 内部主机发现 | `arp-scan` 或 `netdiscover` | 跨子网时用 `nmap -sn` |
| OSINT 快速收集 | `whois` → `theHarvester` | 需要自动化框架/数据库时用 `spiderfoot` 或 `recon-ng` |
| Web 指纹识别 | `whatweb` + `wafw00f` | 批量存活探测时用 `httpx` |
| 子域名爆破 | `dnsgen`/`altdns` 生成 → `massdns`/`dnsx` 验证 | 仅需被动收集时跳至 subfinder |
| 云资产枚举 | `cloud-enum`(关键字)或 `cloudbrute`(爆破) | — |
| 域名变体 / 域名仿冒检测 | `dnstwist` | — |
| 被动 OS 指纹识别 | `p0f`(在接口上监听) | 主动指纹识别用 `nmap -O` |
| 源码与密钥扫描 | `trufflehog` | 仅限 Git 仓库和源码时用 `gitleaks` |
| 历史 URL 发现 | `gau` (getallurls) | 需要主动爬取时使用 `gospider`/`katana` |
| 文档元数据收集 | `metagoofil` | — |
| 用户名/身份 OSINT | `sherlock` | 需要更广泛的自动化 OSINT 时使用 `spiderfoot` |
| 电子邮件泄露查询 | `h8mail` | — |

---

## 网络扫描与主机发现

**[nmap](tools/nmap.md)** — 网络扫描与端口探测
Kali 最核心的工具,支持主机发现、端口扫描、服务版本探测、OS 识别和 NSE 脚本扫描。适用于所有渗透测试阶段的网络资产发现。功能最全面但速度适中。

**[masscan](tools/masscan.md)** — 超高速端口扫描
号称最快的端口扫描器,可在 6 分钟内扫描全网。适合大规模快速发现开放端口,但精度低于 nmap,通常先用 masscan 定位端口再用 nmap 精细分析。

**[naabu](tools/naabu.md)** — 快速、适合管道的端口扫描
ProjectDiscovery 的快速端口扫描器,适合大规模目标列表、Top ports、自定义端口、JSONL 输出,以及直接串联 httpx 或 nuclei。用于在深入 nmap 服务识别前快速发现 TCP 端口。

**[netdiscover](tools/netdiscover.md)** — 内网 ARP 主机发现
基于 ARP 的局域网主机发现工具,不受主机防火墙影响,速度快。支持被动模式(完全静默监听 ARP 流量)。适合内网渗透初期的主机枚举。

**[arp-scan](tools/arp-scan.md)** — ARP 快速扫描
通过发送 ARP 请求发现局域网主机,同时获取 MAC 地址和设备厂商信息。速度比 netdiscover 快,适合快速内网主机清点。

**[nbtscan](tools/nbtscan.md)** — NetBIOS 名称表扫描
扫描本地或可路由网络中的 NetBIOS 名称表,暴露 Windows 主机名、工作组/域和登录用户线索。适合内网主机发现后的 Windows 目标识别。

**[fping](tools/fping.md)** — 多主机快速 ICMP ping
以轮询方式同时探测多个主机,在子网范围主机发现方面远快于标准 ping。支持从文件或标准输入读取主机列表,便于管道传入 nmap。

**[p0f](tools/p0f.md)** — 被动 OS 指纹识别
完全被动,通过分析流经的网络流量推断远程主机操作系统、浏览器类型等。不发送任何数据包,完全隐蔽。适合高隐蔽要求的侦察场景。

**IPv6 发现**:`nmap -6 -sn <prefix>` 用于邻居扫描;`ping6 ff02::1%<interface>` 用于链路本地多播,枚举 IPv4 扫描中可能遗漏的链路上 IPv6 主机。

---

## 子域名与端点发现

**[subfinder](tools/subfinder.md)** — 被动子域名枚举
通过查询 40+ 个公开数据源(VirusTotal、Shodan、证书透明度日志等)枚举子域名,全程不向目标发送数据包。速度快,适合管道使用;与 httpx 和 nuclei 联动可实现自动化"发现→扫描"工作流。

**[assetfinder](tools/assetfinder.md)** — 快速被动子域名发现
查询证书透明度日志、Wayback Machine 和多个威胁情报平台发现子域名。轻量且适合管道操作,无需 API 密钥。可作为快速初步扫描工具,或与 subfinder 配合扩大覆盖范围。

**[findomain](tools/findomain.md)** — 快速子域名发现(Rust)
基于 Rust 的快速子域名发现工具,查询证书透明度日志和多个 API 进行被动枚举。

**[getallurls (gau)](tools/getallurls.md)** — 从历史数据源获取已知 URL
从 Wayback Machine、Common Crawl、OTX、URLScan 获取已知 URL。

**[httprobe](tools/httprobe.md)** — HTTP/HTTPS 探活
HTTP/HTTPS 探活,从子域名列表中过滤存活主机。

**[hosthunter](tools/hosthunter.md)** — 虚拟主机名发现
通过 SSL/TLS 证书和 Bing 反向 IP 发现虚拟主机名。

**[hakrawler](tools/hakrawler.md)** — Web 端点快速爬取
轻量级 Web 爬虫,提取 URL、JS 文件、表单和子域名。专为管道设计:`subfinder | httpx | hakrawler` 可高效绘制完整攻击面。

**[spiderfoot](tools/spiderfoot.md)** — 综合 OSINT 自动化
查询 200+ 个数据源(VirusTotal、Shodan、HaveIBeenPwned 等)收集 IP、域名、邮箱和人名相关情报。同时提供 CLI 和 Web GUI 界面。功能最全面的自动化 OSINT 框架。

**[autorecon](tools/autorecon.md)** — 自动化多服务枚举
针对每个开放端口并行编排 nmap、gobuster、nikto、enum4linux 等数十个工具。大幅节省初始踩点时间,广泛用于 OSCP 和 CTF 实验环境。

---

## DNS 枚举与子域名发现

**[amass](tools/amass.md)** — 全面子域名枚举
功能最强的子域名枚举工具,整合 OSINT(被动)和 DNS 主动查询两种模式,数据源超过 50 个。适合作为子域名发现的主力工具。

**[sublist3r](tools/sublist3r.md)** — 多引擎子域名枚举
使用 Google/Bing/Yahoo 等多个搜索引擎被动收集子域名,速度快,适合快速获取初始子域名列表,可补全 amass 的覆盖范围。

**[dnsenum](tools/dnsenum.md)** — DNS 自动化枚举
集成 DNS 记录查询、区域传送尝试、子域名暴力枚举于一体。适合对目标域名做全面 DNS 侦察,自动化程度高。

**[dnsrecon](tools/dnsrecon.md)** — 多模式 DNS 侦察
支持标准查询、区域传送、Google 枚举、暴力枚举、反向查询等多种模式,输出格式丰富(JSON/XML/CSV)。是 DNS 侦察最全面的工具之一。

**[fierce](tools/fierce.md)** — DNS 子域名暴力枚举
先尝试区域传送,失败后暴力枚举,并对发现的 IP 做反向查询,适合发现目标的非连续 IP 段和内部主机名。

**[dnsmap](tools/dnsmap.md)** — DNS 子域名暴力枚举
使用内置或自定义字典对子域名进行暴力枚举,支持纯文本和 CSV 输出,提供 dnsmap-bulk 批量扫描多个域名。是针对子域名暴力枚举场景比 dnsenum 更简洁、更快速的替代工具。

**[dig](tools/dig.md) / host / nslookup** — DNS 基础查询工具
标准 DNS 查询工具,dig 功能最强。可查询各类 DNS 记录、尝试区域传送、追踪解析路径。是 DNS 侦察的基础必备工具。

**[dnsx](tools/dnsx.md)** — 快速批量 DNS 解析与暴力枚举
ProjectDiscovery 出品的快速多用途 DNS 工具包。支持批量域名解析、子域名暴力枚举,并提取 DNS 记录(A、CNAME、MX、TXT、NS、SOA)。适合管道使用,可从标准输入读取并与 subfinder、httpx 等工具直接集成。

**[massdns](tools/massdns.md)** — 高性能批量 DNS 解析器
通过递归解析器高速解析超大域名列表。用于验证 dnsgen 或 altdns 生成的子域名候选,再将存活名称传给 httpx。

**[dnsgen](tools/dnsgen.md)** — DNS 变体生成
基于已知名称,通过词语拆分、替换和变体规则生成候选子域名。与 massdns 或 dnsx 组合使用,验证哪些生成名称可解析。

**[altdns](tools/altdns.md)** — 子域名变体与改写
根据已知主机名和字典创建改写后的子域名候选,并可选择进行解析。适合发现被动来源未返回的命名模式变体。

**[dnstwist](tools/dnstwist.md)** — 域名变体与域名仿冒检测
生成目标域名的各种变体——拼写错误、同形字、位翻转、添加、省略等——然后检查哪些变体已被注册。用于识别针对品牌的钓鱼基础设施和域名抢注行为。

**[certgraph](tools/certgraph.md)** — 证书透明度图构建器
证书透明度图构建器;通过 SAN 映射域名关系。

### DNS 深度发现 — 基于变体的子域名挖掘

当被动来源和标准字典爆破都已穷尽时,基于变体的 DNS 发现可以挖掘遵循命名模式的子域名(如 `api-v2`、`staging-us-east`、`internal-db-01`)。流程如下:

1. **种子收集** — 从 `subfinder`、`amass` 或 `dnsenum` 获取已知子域名。
2. **变体生成** — 将已知名称输入 `dnsgen`(词语拆分变体)或 `altdns`(基于字典的改写),生成可达数百万条的候选列表。
3. **高速解析** — 将候选列表传入 `massdns`(最快,使用外部解析器)或 `dnsx`(ProjectDiscovery 出品,与其他管道工具无缝集成)以丢弃无法解析的名称。
4. **存活验证** — 将解析成功的名称通过 `httpx` 确认 HTTP 服务存活。

```
cat known-subs.txt | dnsgen - | massdns -r resolvers.txt -t A -o S | httpx -silent
```

当拥有针对目标组织的环境/区域关键词自定义字典时使用 `altdns`;当需要自动词语拆分且无需维护字典时使用 `dnsgen`。

---

## OSINT 与情报收集

**[theHarvester](tools/theHarvester.md)** — 邮箱/域名多源情报收集
从 Google、Bing、LinkedIn、Shodan 等 40+ 数据源收集邮箱地址、子域名、IP、URL 等情报。适合收集目标的人员信息和数字资产。

**[recon-ng](tools/recon-ng.md)** — OSINT 框架
模块化 OSINT 框架,类似 Metasploit 的操作方式,支持 80+ 模块,整合多种 OSINT 数据源,适合系统化情报收集并保存到数据库。

**[shodan (CLI)](tools/shodan.md)** — 网络资产搜索引擎
查询 Shodan 数据库(不向目标发包),发现目标暴露在公网的设备、服务、漏洞。适合快速了解目标的互联网暴露面。需要 API Key。

**[whois](tools/whois.md)** — 域名注册信息查询
查询域名注册人、注册商、DNS 服务器、IP 段归属等信息。纯被动,是侦察阶段最基础的第一步工具。

**[dmitry](tools/dmitry.md)** — 综合 OSINT 收集
单工具整合 WHOIS、子域名搜索、邮件收集、端口扫描,适合快速初始侦察,但各模块深度不及专项工具。

**[metagoofil](tools/metagoofil.md)** — 公开文档元数据提取
下载公开文档并提取元数据(用户名、路径、软件版本)。

**[sherlock](tools/sherlock.md)** — 社交媒体用户名搜索
跨 400+ 社交媒体平台的用户名搜索,用于 OSINT 画像。

**[h8mail](tools/h8mail.md)** — 电子邮件 OSINT 和泄露凭据搜索
电子邮件 OSINT 和泄露凭据搜索工具,查询多个泄露数据库。

**[ldeep](tools/ldeep.md)** — Active Directory LDAP 深度枚举
Active Directory LDAP 深度枚举(用户、组、GPO、信任关系、委派)。

---

## 云资产发现

云侦察用于识别公开暴露的资源——存储桶、应用服务端点、虚拟机主机名和数据库——覆盖 AWS、Azure 和 Google Cloud。将基于关键词的枚举与 Shodan 结合使用,同时覆盖爆破命名模式和被动索引的服务。

**[cloud-enum](tools/cloud-enum.md)** — 多云公开资产枚举
基于关键词检查 AWS、Azure 和 Google Cloud 中的公开资源。当组织名称、产品名称或云资源命名规则位于授权范围内时使用。

**[cloudbrute](tools/cloudbrute.md)** — 云存储桶与应用端点爆破
跨云服务商爆破云资源名称,包括对象存储桶和应用端点。当已掌握目标命名模式时,可作为 cloud-enum 的补充。

**[shodan (CLI)](tools/shodan.md)** — 云与互联网资产搜索
除了传统 OSINT 功能外,Shodan 还索引云托管服务、暴露的仪表盘、数据库和错误配置的实例。使用 `org:` 或 `hostname:` 过滤器被动发现云资产。完整信息见下方 OSINT 部分。

### 云侦察管道

```
1. cloud-enum -k <keyword> -l results.txt   (基于关键词的存储桶/应用枚举)
2. cloudbrute -d <domain> -w wordlist.txt    (爆破命名模式)
3. shodan search org:"Target Corp"           (被动索引的云服务)
4. 验证发现的存储桶/端点                  (确认访问权限)
5. 对发现的端点运行 nuclei/httpx           (漏洞与存活检测)
```

---

## 反追踪

**[macchanger](../sniffing-spoofing/tools/macchanger.md)** — MAC 地址随机化
在侦察扫描前更改网络接口 MAC 地址。防止主机真实硬件地址出现在目标 ARP 表、DHCP 日志和交换机 CAM 表中。

---

## Web 侦察与指纹识别

**[whatweb](tools/whatweb.md)** — Web 指纹识别
识别目标 Web 服务的技术栈(CMS、框架、服务器、语言等),支持批量扫描,帮助判断后续使用哪类漏洞工具。

**[wafw00f](tools/wafw00f.md)** — WAF 检测
识别目标是否部署 Web 应用防火墙及 WAF 类型(支持 200+ 种 WAF),在执行注入测试前必须先检测 WAF,以便选择绕过策略。

**[finalrecon](tools/finalrecon.md)** — 一体化 Web 侦察
单次运行即可完成响应头分析、SSL 检测、WHOIS 查询、DNS 枚举、子域名发现、Web 爬取、Wayback Machine URL 检索和端口扫描。深入测试前的快速初步侦察工具。

**[eyewitness](tools/eyewitness.md)** — Web 服务批量截图
对大量 URL 自动截图并生成 HTML 报告,帮助快速直观地浏览所有 Web 界面,识别登录页、管理面板、默认配置页等高价值目标。

**[gowitness](tools/gowitness.md)** — Web 服务截图
从 URL 或 nmap/nessus 输出获取 Web 服务截图,生成可浏览的报告数据库。与 eyewitness 配合使用以实现全面的视觉侦察。

**[httpx](tools/httpx.md)** — HTTP 服务存活探测
高速验证大量域名/IP 的 HTTP 服务是否存活,同时获取标题、状态码、技术栈等信息。是子域名枚举后必不可少的过滤工具。

---

## 源码和密钥扫描

**[trufflehog](tools/trufflehog.md)** — 深度密钥与凭据扫描  
扫描 Git 仓库历史、S3 存储桶、文件系统和 CI/CD 管道中的硬编码密钥、API keys、密码和令牌。支持 700+ 种检测器并对发现的凭据进行在线验证。比 `gitleaks` 检测范围更广,覆盖 Git 以外的数据源。  

---

## 决策树

当 Golden Path 不适用时选择替代方式:

| 条件 | 动作 |
|------|------|
| 仅被动约束(禁止接触目标) | `subfinder` + `amass -passive` + `shodan` + `theHarvester`;完全跳过 nmap/naabu |
| 目标在 CDN/WAF 后面,需要真实 IP | `dnsx` 查 DNS 记录,`certgraph` 查 CT 关联基础设施,`shodan search hostname:` 查历史 IP |
| subfinder/amass 对已知大型组织返回结果少 | 补充 `certgraph` 查 CT 关联域名 + `theHarvester` 多源 + `dnstwist` 域名仿冒变体 |

---

## 相关分类

- 完整外部攻击面 playbook 见 `../playbooks/external-attack-surface.md`。
- 侦察后的 Web 应用与 API 测试见 `../web/README.md`。

---

## 官方参考

- [Kali Tools](https://www.kali.org/tools/all-tools/)
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall