x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/information-gathering/tools/subfinder.md
View on GitHub# subfinder
- **Category**: Information Gathering / Subdomain Discovery
- **Risk Level**: 🟢 Low
---
## 描述
ProjectDiscovery 出品的被动子域名发现工具(与 nuclei 同一团队)。通过查询 40+ 个公开数据源——VirusTotal、Shodan、Censys、证书透明度日志等——枚举子域名,全程不向目标发送任何数据包。速度快,适合管道使用;广泛用于侦察阶段构建初始目标清单,随后接 httpx 探活和 nuclei 扫描。
## 安装
```bash
sudo apt install subfinder
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-d <domain>` | 要查找子域名的目标域名 |
| `-dL <file>` | 包含多个域名的文件(每行一个) |
| `-o <file>` | 输出文件 |
| `-oJ` | 以 JSONL(ines) 格式输出 |
| `-t <n>` | 解析并发协程数(默认 10) |
| `-silent` | 仅在输出中显示子域名 |
| `-recursive` | 仅使用支持递归处理子域名的数据源 |
| `-all` | 使用全部数据源进行枚举(较慢) |
| `-v` | 显示详细输出 |
| `-pc <file>` | 数据源配置文件(默认:~/.config/subfinder/provider-config.yaml) |
| `-s <sources>` | 指定使用的特定数据源(逗号分隔) |
## 常用命令
```bash
# 基础子域名枚举
subfinder -d example.com
# 保存结果到文件
subfinder -d example.com -o subdomains.txt
# 对多个域名进行枚举
subfinder -dL domains.txt -o all-subdomains.txt
# 使用全部数据源(部分需要 API 密钥)
subfinder -d example.com -all -v
# JSON 输出并通过管道处理
subfinder -d example.com -oJ | jq '.host'
# 与 httpx 联动探测存活子域名
subfinder -d example.com -silent | httpx -silent
# 完整侦察流水线:发现 → 探活 → 扫描
subfinder -d example.com -silent | httpx -silent | nuclei -t cves/
```
## 注意事项
1. subfinder 完全被动——只查询公开数据源,不向目标发送任何数据包。
2. 在 `~/.config/subfinder/provider-config.yaml` 中配置 VirusTotal、Shodan、Censys 等 API 密钥,可显著提升覆盖率。
3. 与 `amass` 配合使用可获得最大覆盖:amass 处理主动 DNS 技术,subfinder 覆盖被动数据源。
4. `-silent` 参数对管道使用至关重要——抑制进度输出,只保留结果。
5. 子域名枚举完成后,始终用 `httpx` 探测存活的 HTTP 服务,再进行扫描。
---
## 官方参考
- [subfinder(GitHub)](https://github.com/projectdiscovery/subfinder)
- [Kali subfinder](https://www.kali.org/tools/subfinder/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |