
PTR, SSL/TLS लुकअप, SNI, JSON के साथ तेज़ IP-से-होस्टनेम रिज़ॉल्वर।
whathost एक उच्च-प्रदर्शन पुनरावलोकन (reconnaissance) टूल है जो सुरक्षा पेशेवरों, पेनेट्रेशन टेस्टरों और बग बाउंटी हंटरों के लिए डिज़ाइन किया गया है। यह 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 | IPs वाली इनपुट फ़ाइल (डिफ़ॉल्ट: 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