
PTR、SSL/TLS検索、SNI、JSONを備えた高速なIPからホスト名へのリゾルバ。
whathost は、セキュリティ専門家、ペネトレーションテスター、バグバウンティハンター向けに設計された高性能な偵察ツールです。SSL/TLS 証明書の検査と DNS PTR ルックアップを通じて IP アドレスをホスト名に高速に解決し、セキュリティ評価のための包括的なホスト列挙を提供します。
SSL/TLS 証明書の列挙
:8443、:8080)DNS PTR ルックアップ
パフォーマンス最適化
柔軟な出力
信頼性
go install gitlab.com/bountrix/whathost@latest
git clone https://gitlab.com/bountrix/whathost.git
cd whathost
go build -o whathost
sudo mv whathost /usr/local/bin/whathost
whathost -version
ファイルからのクイックスキャン:
whathost -i targets.txt
stdin からのパイプライン:
cat ips.txt | whathost
100 ワーカーによる高速スキャン:
whathost -i targets.txt -t 100
クリーンな出力のためのサイレントモード:
whathost -i targets.txt -silent | sort -u
SSL のみの列挙(DNS をスキップ):
whathost -i targets.txt -skip-dns -t 200
DNSのみ、カスタムリゾルバーを使用:
whathost -i targets.txt -skip-ssl -r 8.8.8.8 -p 53
統計情報を含むJSON出力:
whathost -i targets.txt -json -stats -dedupe > results.json
遅延付きのレート制限スキャン:
whathost -i targets.txt -delay 100ms -timeout 15
仮想ホスト用のカスタムSNI:
whathost -i targets.txt -sni example.com -insecure
詳細デバッグ:
whathost -i targets.txt -v -stats
完全な偵察ワークフロー:
cat targets.txt | whathost -t 100 -dedupe -timestamp -o results.txt -stats
| フラグ | エイリアス | 説明 |
|---|---|---|
-i | IP を含む入力ファイル(デフォルト: stdin) | |
-o | 結果の出力ファイル(デフォルト: stdout) | |
-json | 結果を JSON 形式で出力 | |
-silent | -s | サイレントモード - ホスト名のみを出力 |
-timestamp | 結果に RFC3339 タイムスタンプを追加 |
| フラグ | エイリアス | 説明 |
|---|---|---|
-t | -threads | 同時ワーカー数(デフォルト: 32) |
-delay | リクエスト間の遅延(例: 100ms、1s) | |
-timeout | HTTP クライアントのタイムアウト(秒)(デフォルト: 10) |
| フラグ | エイリアス | 説明 |
|---|---|---|
-r | -resolver | カスタム DNS リゾルバの IP アドレス |
-p | DNS リゾルバのポート(デフォルト: 53) | |
-protocol | DNS プロトコル: udp または tcp(デフォルト: udp) | |
-dns-timeout | DNS ルックアップのタイムアウト(秒)(デフォルト: 5) | |
-skip-dns | DNS PTR ルックアップをスキップ |
| フラグ | 説明 |
|---|---|
-sni | SSL 接続の SNI ホスト名を上書き |
-insecure | TLS 証明書の検証をスキップ(デフォルト: true) |
-skip-ssl | SSL 証明書チェックをスキップ |
| フラグ | エイリアス | 説明 |
|---|---|---|
-dedupe | 出力内のホスト名を重複排除 | |
-stats | 完了時に詳細な統計情報を表示 | |
-v | -verbose | デバッグ情報を含む詳細出力 |
-banner | 起動時に ASCII バナーを表示 | |
-version | バージョン情報を表示 |
[SSL-SAN] 143.43.221.133 -> example.com
[SSL-CN] 143.43.221.133 -> example.org
[DNS-PTR] 143.43.221.133 -> host.example.com
[SSL-SAN] 143.43.221.133:8443 -> api.example.com
{
"type": "SSL-SAN",
"ip": "143.43.221.133",
"hostname": "example.com",
"source": "certificate"
}{
"type": "SSL-CN",
"ip": "143.43.221.133",
"hostname": "example.org",
"source": "certificate"
}{
"type": "DNS-PTR",
"ip": "143.43.221.133",
"hostname": "host.example.com",
"source": "dns"
}{
"type": "SSL-SAN",
"ip": "143.43.221.133",
"hostname": "api.example.com",
"port": "8443",
"source": "certificate"
}
example.com
example.org
host.example.com
api.example.com
╔════════════════════════════════════════════╗
║ Statistics Report ║
╠════════════════════════════════════════════╣
║ Total IPs processed: 250 ║
║ SSL hostnames found: 487 ║
║ DNS PTR records: 198 ║
║ Unique hostnames: 623 ║
║ Failed checks: 12 ║
║ Time elapsed: 45.3s ║
║ Processing rate: 5.52 IPs/s ║
╚════════════════════════════════════════════╝
cat ip-ranges.txt | whathost -silent -dedupe | httprobe
whathost -i scope-ips.txt -stats -o discovered-hosts.txt
whathost -i company-ips.txt -json -dedupe > asset-inventory.json
cat ct-log-ips.txt | whathost -skip-dns -t 200 -silent
whathost -i targets.txt -skip-ssl -r 1.1.1.1 -v
iptohostはさまざまな入力形式を受け付けます:
# Plain IPs
192.168.1.1
10.0.0.1
# IPs with ports
192.168.1.1:8443
10.0.0.1:9000
# CIDR ranges (each IP should be on its own line)
192.168.1.1
192.168.1.2
192.168.1.3
# Comments (lines starting with #)
# Production servers
192.168.1.100
# Staging servers
192.168.1.200
# HTTP(S) URLs (protocol will be stripped)
https://192.168.1.1
http://10.0.0.1:8080
subfinder と httpx と組み合わせる:
subfinder -d example.com -silent | httpx -silent | whathost -silent | sort -u
nuclei にパイプして脆弱性スキャンを実行:
cat targets.txt | whathost -silent -dedupe | nuclei -t cves/
massdns との連携:
cat subdomains.txt | massdns -r resolvers.txt -o S -w - | awk '{print $3}' | whathost
CSV へのエクスポート:
whathost -i targets.txt -json | jq -r '[.ip,.hostname,.type] | @csv'
whathost -i massive-list.txt -t 500 -timeout 5 -dns-timeout 3
whathost -i targets.txt -t 10 -delay 500ms -timeout 20
whathost -i targets.txt -t 20 -timeout 30 -dns-timeout 10 -dedupe -stats
コントリビューションを歓迎します!お気軽に Pull Request を送ってください。
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)このプロジェクトは MIT ライセンスの下でライセンスされています - 詳細は LICENSE ファイルをご覧ください。