Using Bing to enumerate Microsoft websites

License GPLv3
Author Andrew Horton (urbanadventurer)
Kali Linux

Introduction is a search engine owned by Microsoft formerly known as MSN Search and Live Search. It offers the unique feature to search for websites by IP address. Bing-ip2hosts leverages this to enumerate all host names that Bing has indexed for any given IP address.

Bing-ip2hosts is written in the Bash scripting language for Linux. This was first published in 2009 and released at the Kiwicon conference in New Zealand.

Unlike many other subdomain enumeration tools, this does not require an API key. Originally this project used the mobile interface but now uses the regular web interface.


bing-ip2hosts (o.4) by Andrew Horton aka urbanadventurer
Useful for web intelligence and attack surface mapping of vhosts during
penetration tests. Find hostnames that share an IP address with your target
which can be a hostname or an IP address. This makes use of Microsoft ability to seach by IP address, e.g. “IP:”.
Usage: /usr/bin/bing-ip2hosts [OPTIONS]
-n Turn off the progress indicator animation
Use this directory instead of /tmp. The directory must exist.
-i Optional CSV output. Outputs the IP and hostname on each line, separated by a comma.
-p Optional http:// prefix output. Useful for right-clicking in the shell.

Usage Examples

Enumerating an IP address

bing-ip2hosts -p
[ | Scraping 60-69 of 73 | Found 41 | | ]| / ]

Enumerating a hostname

bing-ip2hosts -p
[ | Scraping 1 | Found 0 | / ]