-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Installation
The easiest way to use theHarvester is by simply using Kali Linux.
Make sure you are you using a recent version.
From there simply type: theHarvester -h
and you are good to go!
To install theHarvester with pipx you do the following inside the git clone of the repo;
- sudo apt install pipx python3.11-venv(If python3.11+ is not installed)
- pipx install --python python3.11 .
- The --python is only needed if your base OS python version is lower than 3.11
- pipx ensurepath
theHarvester can also be run with Docker.
First, let's store a local copy of api-keys.yaml
and build the docker image.
$ ~ > git clone https://github.com/laramies/theHarvester
$ ~ > cd theHarvester
$ ~ > mkdir ~/.theHarvester
$ ~ > cp api-keys.yaml ~/.theHarvester
$ ~ > docker build -t theharvester .
To launch web server
$ ~ > docker run --rm -p 8080:80 --mount type=bind,source="$HOME/.theHarvester/api-keys.yaml",target="/app/api-keys.yaml" theharvester
To launch cli
$ ~ > docker run --rm -it --mount type=bind,source="$HOME/.theHarvester/api-keys.yaml",target="/app/api-keys.yaml" --entrypoint "/root/.local/bin/theHarvester" theharvester -h
The third option is building from source, simply run these commands
and you are all set!
Make sure you are using Python3.11+ and have pip>=20.3
$ ~ > git clone https://github.com/laramies/theHarvester
$ ~ > cd theHarvester
If developing do:
$ ~ > python3 -m pip install -r requirements/dev.txt
Else:
$ ~ > python3 -m pip install -r requirements/base.txt
$ ~ > python3 theHarvester.py -h
If you wish to use api keys make sure to edit api-keys.yaml
Path to config :
- On OSX :
/usr/local/etc/theharvester/
The api-keys.yml file if installed using the setup.py or in kali are under /etc/theHarvester else it is in the root directory if you have git cloned.
- bevigil - Free upto 50 queries. Pricing can be found here: https://bevigil.com/pricing/osint
- binaryedge - $10/month
- bing
- bufferoverun - uses the free api
- censys - API keys are required and can be retrieved from your Censys account.
- criminalip
- fullhunt
- github
- hunter - limited to 10 on the free plan, so you will need to do -l 10 switch
- hunterhow
- netlas - $
- intelx
- pentesttools - $
- projecdiscovery - invite only for now
- rocketreach - $
- securityTrails
- shodan - $
- zoomeye