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/dnstwist.md
View on GitHub# dnstwist
- **Category**: Information Gathering / DNS Analysis
- **Risk Level**: 🟢 Low
---
## 描述
dnstwist 对目标域名生成各类变体(错字抢注、同形字攻击、位翻转、添加、省略等),并检查哪些变体已注册。用于识别针对品牌的钓鱼基础设施、检测域名抢注,以及发现可能被用于攻击目标组织的攻击者控制域名。还可通过对网页内容进行模糊哈希来检测克隆网站。
## 安装
```bash
sudo apt install dnstwist
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `<domain>` | 要生成变体的目标域名 |
| `-r` / `--registered` | 仅显示已注册/可解析的域名 |
| `-u` / `--unregistered` | 仅显示未注册的域名 |
| `-o <file>` | 将结果写入输出文件 |
| `-f <format>` | 输出格式:`cli`(默认)、`csv`、`json`、`list` |
| `-d <file>` / `--dictionary` | 使用字典文件生成更多域名变体 |
| `--nameservers <servers>` | 指定 DNS 或 DoH 查询服务器(逗号分隔) |
| `-m` / `--mxcheck` | 检测 MX 主机是否可被用于拦截邮件 |
| `-g` / `--geoip` | 查询 GeoIP 地理位置 |
| `-b` / `--banners` | 从存活服务器抓取 HTTP 和 SMTP banner |
| `-w` / `--whois` | 查询 WHOIS 数据库获取创建日期和注册商 |
| `-a` / `--all` | 打印所有 DNS 记录而非仅第一条 |
| `--lsh [type]` | 使用 LSH 算法评估网页相似度(ssdeep、tlsh;默认:ssdeep) |
| `-p` / `--phash` | 渲染网页并评估视觉相似度 |
| `--screenshots <dir>` | 将网页截图保存到目录 |
| `--fuzzers <list>` | 仅使用选定的模糊算法(逗号分隔) |
| `--tld <file>` | 从文件中替换原始域名的 TLD |
| `--useragent <string>` | 设置自定义 User-Agent 字符串 |
| `-t <n>` | 启动指定数量的线程(默认:8) |
## 常用命令
```bash
# 生成并检查所有变体
dnstwist example.com
# 仅显示已注册的变体
dnstwist -r example.com
# JSON 格式输出(便于脚本处理)
dnstwist -f json -r example.com
# 将已注册域名保存为 CSV
dnstwist -f csv -r example.com -o results.csv
# 完整分析:包含横幅抓取和 GeoIP
dnstwist -r --banners --geoip example.com
# 检查变体是否提供网页服务(克隆站点检测)
dnstwist -r --lsh ssdeep example.com
```
## 注意事项
1. 在 OSINT 阶段对目标域名运行 dnstwist —— 已注册的错字抢注域名往往表明有人正在针对该组织实施钓鱼活动。
2. `-r`(仅显示已注册)可大幅减少噪音 —— 未注册的变体并非当前威胁。
3. `--lsh ssdeep` 对目标主页进行模糊哈希并与每个变体对比 —— 可检测克隆钓鱼站点。
4. `--banners` 显示已注册变体上运行的 Web 服务器信息 —— 有助于识别活跃的钓鱼基础设施。
5. 结果通常作为品牌滥用或外部钓鱼风险的证据纳入威胁情报报告。
---
## 官方参考
- [dnstwist (GitHub)](https://github.com/elceef/dnstwist)
- [Kali dnstwist](https://www.kali.org/tools/dnstwist/)
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 |