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/dnsrecon.md
View on GitHub# DNSRecon
- **Category**: Information Gathering / DNS Enumeration
- **Risk Level**: 🟡 Medium
---
## 描述
功能全面的 DNS 侦察工具,支持标准记录枚举、区域传送、Bing 枚举、crt.sh 枚举、暴力破解、反向查询、缓存侦测等多种模式,输出格式多样(JSON/XML/CSV)。
## 安装
```bash
sudo apt install dnsrecon
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-d DOMAIN` | 目标域名 |
| `-t TYPE` | 枚举类型(std/brt/rvl/axfr/bing/yand/crt/snoop/tld/zonewalk/srv) |
| `-D DICT` | 用于爆破的子域名和主机名字典文件 |
| `-n SERVER` | 使用的域名服务器(未指定时使用目标的 SOA;逗号分隔可指定多个) |
| `-r RANGE` | 反向查询爆破的 IP 范围(first-last 或 range/bitmask) |
| `-iL FILE` | 包含待枚举域名列表的文件,每行一个 |
| `--db FILE` | 保存发现记录的 SQLite 3 文件 |
| `-j FILE` | 将输出保存为 JSON 文件 |
| `-x FILE` | 保存发现记录的 XML 文件 |
| `-c FILE` | 将输出保存为 CSV 文件 |
| `--threads N` | 查询和爆破的线程数 |
| `--lifetime N` | 等待服务器响应查询的时间(默认:3.0) |
| `--tcp` | 使用 TCP 协议进行查询 |
| `-a` | 在标准枚举中执行 AXFR |
| `-k` | 在标准枚举中执行 crt.sh 枚举 |
| `-z` | 在标准枚举中执行 DNSSEC zone walk |
| `-f` | 从爆破结果中过滤通配符解析记录 |
| `--iw` | 即使发现通配符记录也继续爆破 |
| `-v` | 启用详细输出 |
## 常用命令
```bash
# 标准扫描(NS、MX、SOA、TXT、SRV、PTR、CNAME 等)
dnsrecon -d target.com -t std
# 区域传送
dnsrecon -d target.com -t axfr
# 子域名暴力枚举
dnsrecon -d target.com -t brt -D /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt
# 反向 IP 范围查询
dnsrecon -r 192.168.1.0/24 -t rvl
# 组合扫描,输出 JSON
dnsrecon -d target.com -a -j /tmp/dnsrecon_output.json
# 指定 DNS 服务器
dnsrecon -d target.com -t std -n 8.8.8.8
```
## 注意事项
1. 优先使用 `std` 模式快速枚举常见记录类型(NS、MX、SOA、TXT、SRV),然后用 `axfr` 模式检测区域传送配置不当。
2. 暴力破解模式(`-t brt`)使用大字典时速度较慢;增大 `--threads`(例如 50–100)可加快枚举。
3. 使用 JSON(`-j`)或 SQLite(`--db`)输出可保存结果,便于后续分析或导入报告工具。
4. `rvl`(反向查询)模式适合发现目标 IP 段内的更多主机名。
5. dnsrecon 比 dnsenum 维护更积极,支持更多记录类型;建议优先用于全面的 DNS 侦察。
---
## 官方参考
- [dnsrecon GitHub](https://github.com/darkoperator/dnsrecon)
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 |