bing-ip2hosts
bing-ip2hosts is a Bing.com web scraper that discovers hostnames and websites associated with an IP address. It leverages Bing's unique IP-based search feature to enumerate subdomains and identify shared hosting environments.
Description
bing-ip2hosts enumerates hostnames for an IP using bing.com, a search engine that uniquely allows searching by IP address. This tool is designed for OSINT and reconnaissance during penetration tests or bug bounties to expand the target's attack surface by discovering subdomains and related domains.
It helps identify websites hosted in shared hosting environments and follows best practices in the reconnaissance phase. Unlike many other recon tools that scrape Bing, bing-ip2hosts features smart scraping behavior to maximize hostname discovery.
The tool provides output options including plain hostnames, CSV format, and customizable scraping parameters for language, market, and result limits.
How It Works
bing-ip2hosts scrapes Bing.com search results using the IP address search feature. It intelligently paginates through results, tracking new hostnames found per page, and stops after a configurable number of pages (default 5) yield no new results. It handles setlang and setmkt parameters for language and market localization, using wget for web requests and temporary directories for caching.
Installation
sudo apt install bing-ip2hostsFlags
Examples
bing-ip2hosts -p microsoft.combing-ip2hosts -p 173.194.33.80bing-ip2hosts -hbing-ip2hosts -o output.txt 192.168.1.1bing-ip2hosts -i ips.txtbing-ip2hosts -c -u example.combing-ip2hosts -q -n 3 8.8.8.8