Nmap whois-domain NSE Script
This page contains detailed information about how to use the whois-domain NSE script. For list of all NSE scripts, visit the Nmap NSE Library.
Select: |
---|
Script Overview
Script source code: https://github.com/nmap/nmap/tree/master/scripts/whois-domain.nse
Script categories: discovery, external, safe
Target service / protocol: -
Target network port(s): -
List of CVEs: -
Script Description
The whois-domain.nse script attempts to retrieve information about the domain name of the target
Whois-domain NSE Script Arguments
The whois-domain.nse script does not have any arguments.
Whois-domain NSE Script Example Usage
Here's an example of how to use the whois-domain.nse script:
nmap --script whois-domain.nse <target>
This script starts by querying the whois.iana.org (which is the root of the
whois servers). Using some patterns the script can determine if the response
represents a referral to a record hosted elsewhere. If that's the case it will
query that referral. The script keeps repeating this until the response don't
match with any of the patterns, meaning that there are no other referrals and
prints the output.
Whois-domain NSE Script Example Output
Here's a sample output from the whois-domain.nse script:
PORT STATE SERVICE REASON
80/tcp open http syn-ack
| whois-domain:
| whois3: Record found at whois.arin.net
| netrange: 199.19.112.0 - 199.19.119.255
| netname: WEBRULON-NETWORK
| orgname: webRulon, LLC
| orgid: WL-1
| country: US stateprov: NY
|
| orgtechname: webRulon Support
| orgtechemail: [email protected]
|
| Domain name record found at whois.enom.com
|
| Registration Service Provided By: Namecheap.com
| Contact: [email protected]
| Visit: http://namecheap.com
| Registered through: eNom, Inc.
|
| Domain name: random-foo-example.com
|
| Registrant Contact:
| Example
| John Foo ()
|
| Fax:
| Dimosthenous 215
| Athens, Attiki 17673
| GR
|
| Administrative Contact:
| Example
| John Foo ([email protected])
| +30.69425555555
| Fax: +1.5555555555
| Dimosthenous 215
| Athens, Attiki 17673
| GR
|
| Technical Contact:
| Example
| John Foo ([email protected])
| +30.69425555555
| Fax: +1.5555555555
| Dimosthenous 215
| Athens, Attiki 17673
| GR
|
| Status: Active
|
| Name Servers:
| dns1.registrar-servers.com
| dns2.registrar-servers.com
| dns3.registrar-servers.com
| dns4.registrar-servers.com
| dns5.registrar-servers.com
|
| Creation date: 14 Oct 2011 13:41:00
| Expiration date: 14 Oct 2013 05:41:00
Whois-domain NSE Script Example XML Output
There is no sample XML output for this module. However, by providing the -oX <file>
option, Nmap will produce a XML output and save it in the file.xml
file.
Author
- George Chatzisofroniou
References
- https://nmap.org/nsedoc/scripts/whois-domain.html
- https://github.com/nmap/nmap/tree/master/scripts/whois-domain.nse
- http://namecheap.com
See Also
Related NSE scripts to the whois-domain.nse script:
Visit Nmap NSE Library for more scripts.
The whois-domain.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.
Error in Hostrule: %s.
Here is a relevant code snippet related to the "Error in Hostrule: %s." error message:
88: local table = require "table"
89:
90: hostrule = function( host )
91: local is_private, err = ipOps.isPrivate( host.ip )
92: if is_private == nil then
93: stdnse.debug1("Error in Hostrule: %s.", err )
94: return false
95: end
96:
97: return not is_private
98: end
Version
This page has been created based on Nmap version 7.92.
Go back to menu.