Skip to content

iptohost is a fast and simple tool to resolve IPs to hostnames and gather SSL/TLS certificate info. Designed for penetration testers, bug hunters, and security researchers, it supports concurrent DNS lookups, PTR resolution, optional SNI, and JSON output for automation.

License

Notifications You must be signed in to change notification settings

INTELEON404/iptohost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logo

iptohost is a fast and flexible tool for resolving IPs and hosts to their SSL/TLS information and DNS PTR records. It’s designed for penetration testers, bug hunters, and security researchers who need to quickly gather host information.


Features

  • Fetch SSL/TLS certificate info (SANs and Common Name)
  • Perform PTR (reverse DNS) lookups
  • Support custom DNS resolver (IP, port, UDP/TCP)
  • Multi-threaded workers for high-speed scanning
  • Accepts stdin or input file
  • Optional SNI override for TLS handshake
  • Optional JSON output for automated parsing
  • Optional delay between requests
  • Handles panics and errors gracefully
  • Configurable TLS verification (-insecure)

Installation

go install github.com/inteleon404/iptohost@latest

Usage

From a file

iptohost -i targets.txt -t 32

From stdin

cat targets.txt | iptohost -t 32

With custom DNS resolver

iptohost -i targets.txt -r 8.8.8.8 -p 53 -protocol udp

Override SNI

iptohost -i targets.txt -sni example.com

JSON output

iptohost -i targets.txt -json

Add delay between requests

iptohost -i targets.txt -delay 100ms

CLI Flags

Flag Description
-t Number of worker threads (default 32)
-i Input file (default stdin)
-r DNS resolver IP (optional)
-p DNS resolver port (default 53)
-protocol DNS protocol (udp/tcp, default udp)
-sni Override SNI host for SSL/TLS
-insecure Skip TLS verification (default true)
-json Output results as JSON
-delay Delay between requests, e.g., 100ms
-timeout HTTP client timeout in seconds (default 10)

Example Output

Human-readable:

[SSL-SAN] 143.43.221.133 example.com
[SSL-CN] 143.43.221.133 example.com
[DNS-PTR] 143.43.221.133 host.example.com

JSON output:

{"type":"SSL-SAN","ip":"143.43.221.133","data":"example.com"}
{"type":"SSL-CN","ip":"143.43.221.133","data":"example.com"}
{"type":"DNS-PTR","ip":"143.43.221.133","data":"host.example.com"}

Requirements

  • Go 1.16 or higher
  • No external dependencies required

License

MIT License


Project Structure

iptohost/
├── main.go
├── go.mod
├── README.md

About

iptohost is a fast and simple tool to resolve IPs to hostnames and gather SSL/TLS certificate info. Designed for penetration testers, bug hunters, and security researchers, it supports concurrent DNS lookups, PTR resolution, optional SNI, and JSON output for automation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages