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/whois.md
View on GitHub# whois
- **Category**: Information Gathering / OSINT
- **Risk Level**: 🟢 Low
---
## 描述
whois 是最基础的域名/IP 注册信息查询工具,通过查询 WHOIS 数据库获取域名注册人、注册商、DNS 服务器、IP 段归属等信息。纯被动查询,不会被目标感知。
## 安装
```bash
sudo apt install whois
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `domain/IP` | 查询目标(域名或 IP 地址) |
| `-h HOST` | 连接到指定的 WHOIS 服务器 |
| `-p PORT` | 连接到指定端口(默认 43) |
| `-I` | 查询 whois.iana.org 并跟随其引荐 |
| `-H` | 隐藏法律免责声明(更干净的输出便于解析) |
| `--verbose` | 解释正在执行的操作 |
## 常用命令
```bash
# 域名 WHOIS
whois target.com
# IP WHOIS(获取 ASN 和 IP 段归属)
whois 8.8.8.8
# 查询注册商信息
whois target.com | grep -i "registrar\|name server\|expiry"
# 提取关键信息
whois target.com | grep -iE "registrant|admin|tech|email|phone|name server"
# 指定 WHOIS 服务器
whois -h whois.arin.net 192.0.2.1 # 替换为实际北美 IP(此处为 RFC 5737 测试地址)
whois -h whois.ripe.net 198.51.100.1 # 替换为实际 RIPE IP(欧洲/中东),此处为 RFC 5737 测试地址
# 批量查询(结合 shell 循环)
for domain in target.com target2.com; do
echo "=== $domain ==="; whois $domain | grep -i "registrant\|email"
done
```
### 关键信息提取
```bash
# 提取邮件地址(用于鱼叉攻击)
whois target.com | grep -oE "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"
# 提取 DNS 服务器
whois target.com | grep -i "name server"
# 提取注册日期
whois target.com | grep -i "creation\|updated\|expir"
```
## 注意事项
1. 部分域名开启 WHOIS 隐私保护,信息会被屏蔽
2. 结合 theHarvester 和 amass 使用效果更好
3. IP 查询可得到 ASN、CIDR 等内网扩展信息
---
## 官方参考
- [whois GitHub](https://github.com/rfc1036/whois)
- [RFC 3912 - WHOIS 协议](https://www.rfc-editor.org/rfc/rfc3912)
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 |