WTFIS Passive Hostname, Domain and IP Lookup Tool for non-robots

WTFIS Passive Hostname, Domain and IP Lookup Tool for non-robots
(Last Updated On: October 26, 2022)

wtfis is a commandline tool that information gathering about a domain, FQDN or IP address using various OSINT services. Unlike other tools of its kind, it’s built specifically for human consumption, providing results that are pretty (YMMV) and easy to read and understand.

This tool assumes that you are using free tier / community level accounts, and so makes as few API calls as possible to minimize hitting quotas and rate limits.

The project name is a play on “whois”.

Data Sources


The primary source of information. Retrieves:

– Hostname (FQDN), domain or IP

  • Latest analysis stats with vendor detail
  • Reputation score (based on VT community votes)
  • Popularity ranks (Alexa, Cisco Umbrella, etc.) (FQDN and domain only)
  • Categories (assigned by different vendors)
  • Last IP or DNS record update date
    Date DNS record was last retrieved by VT (FQDN and domain only)

– Resolutions (FQDN and domain only)

  • Last n IP addresses (default: 3, max: 10)
  • Latest analysis stats of each IP above

– Whois

  • Fallback only: if Passivetotal creds are not available
  • Various whois data about the domain itself

Passivetotal (RiskIQ)

Optionally used if creds are provided. Retrieves:

  • Whois
    Various whois data about the domain itself

Passivetotal is recommended over Virustotal for whois data for a couple of reasons:

  • VT whois data format is less consistent
  • PT whois data tends to be of better quality than VT. Also, VT’s registrant data is apparently anonymized.
  • You can save one VT API call by offloading to PT


IP address enrichments for VT resolutions. For each IP, retrieves the ASN, Org, ISP and Geolcoation.


Alternative IP address enrichment source. GETs data from the /shodan/host/{ip} endpoint (see doc). For each IP, retrieves:

ASN, Org, ISP and Geolocation
Operating system (if available)
List of open ports and detected services
Tags (assigned by Shodan)


$ pip install wtfis


wtfis uses these environment variables:

  • VT_API_KEY (required) – Virustotal API key
  • PT_API_KEY (optional) – Passivetotal API key
  • PT_API_USER (optional) – Passivetotal API user
  • SHODAN_API_KEY (optional) – Shodan API key

Set these using your own method.

Alternatively, create a file in your home directory ~/.env.wtfis with the above declarations. See .env.wtfis.example for a template. NOTE: Don’t forget to chmod 400 the file!



wtfis [-h] [-m N] [-s] [-n] [-1] [-V] entity

positional arguments:
entity Hostname, domain or I-h, –help show this help message and exit
-m N, –max-resolutions N
Maximum number of resolutions to show (default: 3)
-s, –use-shodan Use Shodan to enrich IPs
-n, –no-color Show output without colors
-1, –one-column Display results in one column
-V, –version Print version number



and you will get results organized by panel, similar to the image above.

Defanged input is accepted (e.g. api[.]google[.]com).

If your terminal supports it, FQDN, domain, and IP headings are clickable hyperlinks that point to the appropriate pages on the VT or PT (RiskIQ) website.

Shodan enrichment

Shodan can be used to enrich the IP addresses (instead of IPWhois). Invoke with the -s or –use-shodan flag.

The Services field name is a hyperlink (if supported by the terminal) that takes you to the IP in the Shodan web interface.

Display options

For FQDN and domain lookups, you can increase or decrease the maximum number of displayed IP resolutions with -m NUMBER or –max-resolutions=NUMBER. The upper limit is 10. If you don’t need resolutions at all, set the number to 0.

To show all panels in one column, use the -1 or –one-column flag.

Panels can be displayed with no color with -n or –no-color.

Download WTFIS


Leave a Reply

Your email address will not be published. Required fields are marked *

fb logo
recover dogecoin from a scam
recover ethereum from a scammer
hire a hacker to hack iphone
hire a hacker to hack snapchat
hire a hacker to hack a windows computer
error: Content is protected !!