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/massdns.md
View on GitHub# MassDNS
- **Category**: Information Gathering / High-Speed DNS Resolution
- **Risk Level**: 🟢 Low
---
## 描述
massdns 是用于批量 DNS 解析和验证的高性能 DNS stub resolver。当 `altdns`、`dnsgen` 或自定义字典生成非常大的候选列表时,标准工具解析速度可能不足,massdns 适合用于验证大型子域名数据集,再将解析成功的主机传给 `httpx`、`naabu` 或 `nuclei`。
## 安装
```bash
sudo apt update
sudo apt install massdns
massdns -h
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-r <file>` | 包含 DNS 解析器的文本文件 |
| `-t <type>` | 要解析的记录类型(默认:A) |
| `-o <format>` | 输出格式标志 |
| `-w <file>` | 写入指定输出文件而非标准输出 |
| `-s <n>` | 并发查询数(默认:10000) |
| `--flush` | 每收到响应时立即刷新输出文件 |
| `<file>` | 输入域名列表 |
## 常用命令
```bash
# 使用 resolver 列表解析 A 记录
massdns -r resolvers.txt -t A -o S -w /tmp/massdns.txt candidates.txt
# 提取解析成功的主机名
awk '/ A / {print $1}' /tmp/massdns.txt | sed 's/\\.$//' | sort -u > /tmp/resolved.txt
# 解析 dnsgen 输出
dnsgen subdomains.txt | massdns -r resolvers.txt -t A -o S -w /tmp/generated-resolved.txt
# 将解析成功主机串联到 httpx
awk '/ A / {print $1}' /tmp/massdns.txt | sed 's/\\.$//' | httpx -silent -title
```
## 注意事项
1. 使用可靠的解析器列表;质量差的解析器会产生误报漏报和噪声。
2. massdns 速度很快,可能产生大量 DNS 流量;必须合理控制范围和速率。
3. 最适合在 `dnsgen`、`altdns` 或自定义变体生成之后使用。
4. 将输出传给 HTTP 或端口扫描器前,先去重并规范化末尾点号。
---
## 官方参考
- [massdns GitHub](https://github.com/blechschmidt/massdns)
- [Kali massdns](https://www.kali.org/tools/massdns/)
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 |