How To Install bing-ip2hosts on Kali Linux

In this tutorial we learn how to install bing-ip2hosts on Kali Linux. bing-ip2hosts is Enumerate hostnames for an IP using bing.com

Introduction

In this tutorial we learn how to install bing-ip2hosts on Kali Linux.

What is bing-ip2hosts

bing-ip2hosts is:

This package contains a Bing.com web scraper that discovers hostnames by IP address. Bing is the flagship Microsoft search engine formerly known as MSN Search and Live Search.

It provides a feature unique to search engines - it allows searching by IP address. Bing-ip2hosts uses this feature.

It can be used to discover subdomains and other related domains. It also helps to identify websites hosted in a shared hosting environment. This technique follows best practices during the reconnaissance phase of a penetration test or bug bounty, to expand the target’s attack surface.

Unlike other many other recon tools that web scrape Bing, this tool has smart scraping behaviour to maximize the discovery of hostnames.

There are three methods to install bing-ip2hosts on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install bing-ip2hosts Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install bing-ip2hosts using apt-get by running the following command:

sudo apt-get -y install bing-ip2hosts

Install bing-ip2hosts Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install bing-ip2hosts using apt by running the following command:

sudo apt -y install bing-ip2hosts

Install bing-ip2hosts Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install bing-ip2hosts using aptitude by running the following command:

sudo aptitude -y install bing-ip2hosts

How To Uninstall bing-ip2hosts on Kali Linux

To uninstall only the bing-ip2hosts package we can use the following command:

sudo apt-get remove bing-ip2hosts

Uninstall bing-ip2hosts And Its Dependencies

To uninstall bing-ip2hosts and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove bing-ip2hosts

Remove bing-ip2hosts Configurations and Data

To remove bing-ip2hosts configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge bing-ip2hosts

Remove bing-ip2hosts configuration, data, and all of its dependencies

We can use the following command to remove bing-ip2hosts configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge bing-ip2hosts

Dependencies

bing-ip2hosts have the following dependencies:

References

Summary

In this tutorial we learn how to install bing-ip2hosts package on Kali Linux using different package management tools: apt, apt-get and aptitude.