HostsGrabber


 

Language: Python

Publication date: 2008-08-12

Description: Script which returns a list of hostnames of the given domain (and their resolved IPs) contained in the given URL. The request can be recursive. This is useful to map all the hosts of one organization.

Download it!

 


Usage


 

Usage: hostsGrabber [-r] url [domain]
Arguments:
url: the URL of the page which must be searched for hostnames.
domain: the domain of the hostnames to look for. By default it's the url domain.
Options:
-r: recursive

 

# hostsGrabber www.facebook.com

blog.facebook.com -> 69.63.190.10
ca-es.facebook.com -> 69.63.189.26
de-de.facebook.com -> 69.63.189.26
developers.facebook.com -> 69.63.178.31
es-es.facebook.com -> 69.63.190.10
es-la.facebook.com -> 69.63.189.26
eu-es.facebook.com -> 66.220.153.19
fr-fr.facebook.com -> 66.220.153.19
gl-es.facebook.com -> 66.220.153.19
pt-br.facebook.com -> 69.63.189.26
www.facebook.com -> 66.220.153.19

 

# hostsGrabber -r www.facebook.com
Attention: The URL 'http://static.ak.facebook.com' is forbidden!!

a.ok.facebook.com -> 216.34.207.179
blog.facebook.com -> 69.63.189.26
bugs.developers.facebook.com -> 69.63.177.195
ca-es.facebook.com -> 66.220.153.19
de-de.facebook.com -> 66.220.153.19
developers.facebook.com -> 69.63.178.31
es-es.facebook.com -> 69.63.189.26
es-la.facebook.com -> 69.63.190.10
eu-es.facebook.com -> 66.220.153.19
forum.developers.facebook.com -> 69.63.177.195
fr-fr.facebook.com -> 69.63.190.10
gl-es.facebook.com -> 66.220.153.19
pt-br.facebook.com -> 69.63.190.10
static.ak.facebook.com -> 213.248.124.26
wiki.developers.facebook.com -> 69.63.178.31
www.facebook.com -> 69.63.189.26

 

# hostsGrabber www.facebook.es

# hostsGrabber www.facebook.es facebook.com

blog.facebook.com -> 66.220.153.19
ca-es.facebook.com -> 69.63.190.10
de-de.facebook.com -> 69.63.189.26
developers.facebook.com -> 69.63.178.31
es-es.facebook.com -> 69.63.189.26
es-la.facebook.com -> 69.63.190.10
eu-es.facebook.com -> 69.63.189.26
fr-fr.facebook.com -> 69.63.190.10
gl-es.facebook.com -> 66.220.153.19
pt-br.facebook.com -> 69.63.190.10
www.facebook.com -> 69.63.190.10