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/altdns.md
View on GitHub# Altdns
- **Category**: Information Gathering / DNS Permutation
- **Risk Level**: 🟢 Low
---
## 描述
altdns 基于已知子域名和字典生成可能存在的子域名变体,并可选择解析这些结果。它适合在 `subfinder` 或 `amass` 完成初始发现后,用于寻找 `dev-api`、`staging-admin`、`vpn-east` 等环境相关命名。大规模验证时可与 `dnsx` 或 `massdns` 搭配使用。
## 安装
```bash
sudo apt update
sudo apt install altdns
altdns -h
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-i <file>` | 输入子域名列表 |
| `-w <file>` | 用于修改子域名的词列表 |
| `-o <file>` | 修改后子域名的输出位置 |
| `-r` | 解析所有修改后的子域名 |
| `-n` | 为每个域名添加数字后缀(0-9) |
| `-e` | 忽略文件中已存在的域名 |
| `-s <file>` | 保存已解析的修改子域名到文件 |
| `-t <n>` | 同时运行的线程数 |
| `-d <ip>` | DNS 解析器 IP 地址(覆盖系统默认值) |
## 常用命令
```bash
# 基于已发现子域名生成变体
altdns -i subdomains.txt -w /usr/share/seclists/Discovery/DNS/bitquark-subdomains-top100000.txt -o altdns.txt
# 生成并解析结果
altdns -i subdomains.txt -w words.txt -o altdns.txt -r -s altdns-resolved.txt
# 使用 dnsx 验证生成的名称
altdns -i subdomains.txt -w words.txt -o altdns.txt
dnsx -l altdns.txt -a -resp -o /tmp/altdns-dnsx.txt
```
## 注意事项
1. altdns 最适合在已经拥有真实子域名种子列表后使用。
2. 字典中应加入组织相关词,如 `dev`、`stage`、`vpn`、`admin`、地区名和产品名。
3. 大型列表建议由 altdns 生成,再用 `dnsx` 或 `massdns` 解析。
4. 控制变体规模;大字典可能产生数百万候选项。
---
## 官方参考
- [altdns GitHub](https://github.com/infosec-au/altdns)
- [Kali altdns](https://www.kali.org/tools/altdns/)
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 |