Home page logo
/
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News

File hostmap-ip2hosts

Script types: hostrule
Categories: external, discovery
Download: http://nmap.org/svn/scripts/hostmap-ip2hosts.nse

User Summary

Finds hostnames that resolve to the target's IP address by querying the online database:

The script is in the "external" category because it sends target IPs to a third party in order to query their database.

Script Arguments

newtargets

If set, add the new hostnames to the scanning queue. This the names presumably resolve to the same IP address as the original target, this is only useful for services such as HTTP that can change their behavior based on hostname.

hostmap.prefix

If set, saves the output for each host in a file called "<prefix><target>". The file contains one entry per line.

max-newtargets

See the documentation for the target library.

http.max-cache-size, http.max-pipeline, http.pipeline, http.useragent

See the documentation for the http library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

Example Usage

  • nmap --script hostmap-ip2hosts --script-args 'hostmap-ip2hosts.prefix=hostmap-' <targets>
  • nmap -sn --script hostmap-ip2hosts <target>

Script Output

Host script results:
| hostmap-ip2hosts:
|   hosts:
|     insecure.org
|     nmap.org
|     sectools.org
|     svn.nmap.org
|     cgi.insecure.org
|_  filename: output_nmap.org

Requires


Author: Paulino Calderon <calderon@websec.mx>

License: Same as Nmap--See http://nmap.org/book/man-legal.html

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]