WHOIS - Port 43
Basic Information
WHOIS is a protocol used to query databases to obtain information about the registrants of various internet resources, including domain names, IP address blocks, and autonomous systems. It operates on a standard port and can be a key tool in information gathering during penetration testing.
Default port: 43
PORT STATE SERVICE
43/tcp open whoisEnumerating WHOIS
To begin with WHOIS enumeration, you can query a WHOIS server to extract all available information about a domain:
whois -h <HOST> -p <PORT> "domain.tld"Alternatively, you can also use netcat for the same purpose:
echo "domain.tld" | nc -vn <HOST> <PORT>Database Information
Often, the WHOIS server responds with the name of the database being queried. This is useful information for further enumeration. It's important to remember that WHOIS services rely on databases to store and retrieve the information, which opens the possibility for SQL injection vulnerabilities.
Using the following query:
If the WHOIS server is vulnerable, you could extract all the information stored in the underlying database. This makes it essential to consider WHOIS as a potential vector for SQL injection attacks when testing.
Automate script for SQLi:
Make the script executable:
Last updated
Was this helpful?