How To Install theharvester on Kali Linux
Introduction
In this tutorial we learn how to install theharvester on Kali Linux.
What is theharvester
theharvester is:
The package contains a tool for gathering subdomain names, e-mail addresses, virtual hosts, open ports/ banners, and employee names from different public sources (search engines, pgp key servers).
There are three methods to install theharvester 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 theharvester Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install theharvester using apt-get by running the following command:
sudo apt-get -y install theharvesterInstall theharvester Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install theharvester using apt by running the following command:
sudo apt -y install theharvesterInstall theharvester 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 updateAfter updating apt database, We can install theharvester using aptitude by running the following command:
sudo aptitude -y install theharvesterHow To Uninstall theharvester on Kali Linux
To uninstall only the theharvester package we can use the following command:
sudo apt-get remove theharvesterUninstall theharvester And Its Dependencies
To uninstall theharvester and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove theharvesterRemove theharvester Configurations and Data
To remove theharvester configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge theharvesterRemove theharvester configuration, data, and all of its dependencies
We can use the following command to remove theharvester configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge theharvesterDependencies
theharvester have the following dependencies:
- python3
- python3-aiodns
- python3-aiohttp
- python3-aiomultiprocess
- python3-aiosqlite
- python3-bs4
- python3-certifi
- python3-dnspython
- python3-lxml
- python3-netaddr
- python3-plotly
- python3-pyppeteer
- python3-requests
- python3-retrying
- python3-shodan
- python3-texttable
- python3-uvloop
- python3-yaml
- python3
References
Summary
In this tutorial we learn how to install theharvester package on Kali Linux using different package management tools: apt, apt-get and aptitude.