Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitLabGitLab/bountrix/whathost
OSINT (开源情报)侦察网络映射信息收集渗透测试实用工具与框架子域名枚举DNS 分析
GitLabbountrix/whathost

whathost

快速 IP 到主机名解析器,支持 PTR、SSL/TLS 查询、SNI、JSON。

查看仓库
2821小时45分前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
ascii-art-text

Version Go Version License Platform

📖 关于

whathost 是一款高性能侦察工具,专为安全专业人员、渗透测试人员和漏洞赏金猎人设计。它通过 SSL/TLS 证书检查和 DNS PTR 查询快速将 IP 地址解析为主机名,为安全评估提供全面的主机枚举能力。

为什么选择 whathost?

  • 🚀 极速运行:多线程架构,工作线程数可配置
  • 🎯 双重发现:结合 SSL 证书分析与 DNS PTR 查询
  • 🔧 高度可配置:自定义 DNS 解析器、SNI 覆盖、灵活的输出格式
  • 📊 多种输出模式:人类可读、JSON 或用于脚本的静默模式
  • 🛡️ 专注安全:为侦察工作流打造,支持去重与统计跟踪
  • 🔌 易于管道集成:无缝的 stdin/stdout 集成,便于工具链串联

✨ 功能特性

核心能力

  • SSL/TLS 证书枚举

    • 提取主题备用名称(SAN)
    • 提取通用名称(CN)
    • 支持自定义端口(例如 :8443、:8080)
    • 针对虚拟主机场景的 SNI 覆盖
  • DNS PTR 查询

    • 反向 DNS 解析
    • 支持自定义 DNS 解析器(IP、端口、协议)
    • 可配置的超时时间
    • UDP/TCP 协议选择

高级功能

  • 性能优化

    • 可配置的工作线程数(默认:32)
    • 连接池与连接复用
    • 支持 HTTP/2 以加快 TLS 握手
    • 带可配置延迟的速率限制
  • 输出灵活性

    • 带彩色输出的人类可读格式
    • 用于自动化的 JSON 输出
    • 静默模式(仅输出主机名)
    • 时间戳支持(RFC3339)
    • 去重选项
  • 可靠性

    • 优雅的错误处理
    • Panic 恢复
    • 详细的统计报告
    • 详细日志模式

🚀 安装

使用 Go Install(推荐)

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)
-timeoutHTTP 客户端超时时间(秒)(默认:10)

DNS 选项

标志别名描述
-r-resolver自定义 DNS 解析器 IP 地址
-pDNS 解析器端口(默认:53)
-protocolDNS 协议:udp 或 tcp(默认:udp)
-dns-timeoutDNS 查询超时时间(秒)(默认:5)
-skip-dns跳过 DNS PTR 查询

SSL/TLS 选项

标志描述
-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

JSON 输出

{
  "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         ║
╚════════════════════════════════════════════╝

使用场景

漏洞赏金狩猎

从 IP 段发现子域名

cat ip-ranges.txt | whathost -silent -dedupe | httprobe

渗透测试

枚举已发现 IP 上的所有主机

whathost -i scope-ips.txt -stats -o discovered-hosts.txt

资产发现

查找与公司 IP 关联的所有主机名

whathost -i company-ips.txt -json -dedupe > asset-inventory.json

证书透明度分析

从证书监控中提取所有 SAN

cat ct-log-ips.txt | whathost -skip-dns -t 200 -silent

反向 DNS 枚举

仅 PTR 记录枚举

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

环境要求

  • Go:1.18 或更高版本
  • 网络:出站 HTTPS(443)和 DNS(53)访问权限
  • 权限:无需 root/管理员权限

贡献指南

欢迎贡献!请随时提交 Pull Request。

  1. Fork 本仓库
  2. 创建你的功能分支(git checkout -b feature/AmazingFeature)
  3. 提交你的更改(git commit -m 'Add some AmazingFeature')
  4. 推送到该分支(git push origin feature/AmazingFeature)
  5. 打开一个 Pull Request

📝 许可证

本项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。


🙏 致谢

  • 灵感来源于漏洞赏金和渗透测试社区
  • 为需要快速、可靠侦察工具的安全专业人员而构建
  • 特别感谢所有贡献者和用户

📧 联系方式

INTELEON404 - @inteleon404 BOUNTRIX - @BOUNTRIX

项目链接:https://gitlab.com/bountrix/whathost


用 ❤️ 为安全社区打造
祝你狩猎愉快!🎯
下载工具