Information Gatheringwhoisdomainiplookupreconnaissancemkpasswd

whois

Intelligent WHOIS client that queries online servers for domain and IP address information. Includes mkpasswd, a feature-rich front end to the crypt(3) password encryption function.

Description

The whois tool provides a commandline client for the WHOIS (RFC 3912) protocol, querying online servers for contact details of domains and IP address assignments. It intelligently selects the appropriate WHOIS server for most queries, supporting recursion and various lookup options for detailed network object information.

Mkpasswd serves as an overfeatured front end to crypt(3), enabling flexible password encryption with multiple methods, salts, and rounds. It is useful for generating hashed passwords interactively or from input.

These tools are valuable in penetration testing for reconnaissance, such as gathering domain ownership details or creating password hashes during assessments.

How It Works

Whois connects to specified WHOIS servers (defaulting to intelligent selection) over the WHOIS protocol (RFC 3912) to retrieve object data like domain contacts and IP assignments. It supports recursion from registry to registrar servers, inverse lookups, and RIPE-specific flags for refined queries. Mkpasswd applies crypt(3) with user-specified methods (e.g., md5crypt), salts, and rounds to encrypt passwords.

Installation

bash
sudo apt install whois

Flags

-h HOST, --host HOSTconnect to server HOST
-p PORT, --port PORTconnect to PORT
-Iquery whois.iana.org and follow its referral
-Hhide legal disclaimers
--verboseexplain what is being done
--no-recursiondisable recursion from registry to registrar servers
-m, --method=TYPEselect method TYPE (mkpasswd)
-5like --method=md5crypt (mkpasswd)
-S, --salt=SALTuse the specified SALT (mkpasswd)
-R, --rounds=NUMBERuse the specified NUMBER of rounds (mkpasswd)

Examples

Display help for mkpasswd
mkpasswd -h
Display help for whois
whois --help
Interactively prompt for PASSWORD and generate crypt hash with random salt
mkpasswd
Prompt for password and use md5crypt method
mkpasswd -5
Print available encryption methods
mkpasswd --method=help
Query WHOIS information for example.com using intelligent server selection
whois example.com
Query whois.iana.org for IP 8.8.8.8 and follow referral
whois -I 8.8.8.8
Query RIPE server without object filtering to show email addresses
whois --host whois.ripe.net -B example.com
Updated 2026-04-16kali.org ↗