**攻击面映射工具 — 被动侦察工具**
[](https://golang.org)
[](LICENSE)
[]()
[]()
[]()
## 概述
**WhoIsYourDaddy**(`wiyd`)是一个使用 Go 编写的被动攻击面映射工具。它从多个公共来源聚合数据,以枚举子域名、解析 IP 地址,并生成目标域名的风险评分资产清单 —— 全程无需向目标发送任何数据包。
专为专业渗透测试人员和红队人员在测试前的侦察阶段设计。
```
[+] crt.sh done
[subdomain] gitlab.example.com
[subdomain] admin.example.com
[subdomain] vpn.example.com
[+] dns-enum done
[subdomain] www.example.com
[subdomain] mail.example.com
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RESULTS — 5 unique assets
[ 5] gitlab.example.com ip: 1.2.3.4 sources: crt.sh,dns-enum
[ 4] admin.example.com ip: 1.2.3.5 sources: dns-enum
[ 4] vpn.example.com ip: n/a sources: crt.sh
[ 1] www.example.com ip: 1.2.3.6 sources: dns-enum
[ 0] mail.example.com ip: n/a sources: crt.sh
[+] report saved: report.html
```
## 截图
## 功能
- **证书透明度** — 查询 crt.sh 以从公共 SSL/TLS 证书中提取子域名
- **DNS 枚举** — 使用内置字典或兼容 SecLists 的外部文件进行并发暴力破解
- **关联器** — 跨来源对资产进行去重,并根据命名模式和暴露情况分配风险评分
- **HTML 报告** — 生成专业的、可直接交付给客户的包含风险分类的报告
- **风险评分** — 自动优先处理高价值资产(管理面板、VPN、开发环境、API)
- **零目标接触** — 所有侦察均为被动;不会向目标发送任何数据包
## 安装
### 要求
- Go 1.21 或更高版本
### 从源码构建
```
git clone https://github.com/0nlyManu/whoisyourdaddy.git
cd whoisyourdaddy
go build -o wiyd ./cmd/wiyd
```
### go install
```
go install github.com/0nlyManu/whoisyourdaddy/cmd/wiyd@latest
```
## 用法
```
USAGE
wiyd -target
wiyd -target -wordlist
OPTIONS
-target target domain to enumerate
-wordlist path to external wordlist file (optional)
-output output report file path (default: report.html)
-h show this help menu
EXAMPLES
wiyd -target example.com
wiyd -target example.com -wordlist /path/to/SecLists/Discovery/DNS/subdomains-top1million-5000.txt
wiyd -target example.com -output /tmp/report.html
```
## 模块
| 模块 | 类型 | 描述 |
| ---------- | ------------ | ------------------------------------------------------ |
| `crt.sh` | 被动 | 从证书透明度日志中提取子域名 |
| `dns-enum` | 半被动 | 使用并发 goroutine 池进行 DNS 暴力破解 |
**即将推出**
- WHOIS / RDAP
- Shodan 集成
- GitHub 密钥扫描
- 云资产发现
## 风险评分
资产将根据以下条件自动进行 0 到 10 分的评分:
| 标准 | 分数 |
| ---------------------------------------------------------------------------- | ------ |
| 名称包含:`admin`、`vpn`、`gitlab`、`internal`、`dev`、`staging`、`api` | +3 |
| 被多个来源发现 | +2 |
| 已解析 IP 地址 | +1 |
| 分数 | 风险等级 |
| ----- | ---------- |
| 7–10 | 🔴 高 |
| 4–6 | 🟠 中 |
| 0–3 | 🟢 低 |
## 报告
WhoIsYourDaddy 会生成一份适合交付给客户的专业 HTML 报告。
该报告包含:
- 扫描元数据(目标、日期、工具版本)
- 风险摘要卡片(总计、高、中、低)
- 包含 IP、来源和风险评分的完整资产表
## 项目结构
```
whoisyourdaddy/
├── cmd/wiyd/ entry point
├── sources/ data sources (crt.sh, dns-enum)
├── internal/
│ ├── correlator/ deduplication and risk scoring
│ ├── models/ shared data structures
│ ├── reporter/ HTML report generation
│ └── ui/ terminal output and colors
└── go.mod
```
## 法律免责声明
## 许可证
MIT 许可证 — 详见 [LICENSE](LICENSE)。