This virtual enviornment is necessary when you are using virtual machine or Usually when you'll get an error --->
which means your python environment that is managed outside of the package manager or virtual environment tool. .
Then use this commands serially ------->
-
apt install python3-virtualenv --> #Install the virtual Environment
-
virtualenv /venv ---> # Create a virtual environment
-
source venv/bin/activate
source /venv/bin/activate (if you do from other directory) --> # Activate the virtual environment -
git clone https://github.com/laramies/theHarvester ------> #Clone the directory to your linux pc.
-
cd theHarvester ----> #Go to theHarvester directory.
-
sudo apt install python3-pip ------> #To install pip.
-
pip3 install -r requirements.txt ----> need to install the requirement everytime after creating virtual enviornment.
python3 theHarvester.py -d example.com -b all ---> #Here all means all search engines.
when done you can deactivate the environment using the command ---->
Some private search engines like shodan, virusdefender etc needs to add their API in the harvester for searching. to add their API just login to those websites and copy their respective APIs. Then edit this file from there add the API keys under there names according to serial. then save it. then when you'll search again something, system will search from those websites also using the APIs.