WHOIS - Port 43
Last updated
Was this helpful?
Last updated
Was this helpful?
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
To begin with WHOIS enumeration, you can query a WHOIS server to extract all available information about a domain:
Alternatively, you can also use netcat for the same purpose:
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: