Skip to content

Instantly share code, notes, and snippets.

@linuxbiekaisar
Last active December 31, 2024 18:33
Show Gist options
  • Save linuxbiekaisar/3bf452b25a03d513a3769c97de20dfeb to your computer and use it in GitHub Desktop.
Save linuxbiekaisar/3bf452b25a03d513a3769c97de20dfeb to your computer and use it in GitHub Desktop.
How to install theHarvester on Ubuntu 18.04 LTS
# Youtube: https://www.youtube.com/channel/UC8dSAxutoOJuoy7kExTd0AQ
# !/bin/sh
# use to git clon to download and clone the theHarvester from Github
git clone https://github.com/laramies/theHarvester
# Now enter into the theHarvester Folder
cd theHarvester
# Now install pip
sudo apt install python3-pip
# Now run the command if not donot work then run second one
python3.7 -m pip install -r requirements/dev.txt
# Else:
python3.7 -m pip install -r requirements/base.txt
# NOw run theHarvester
python3.7 theHarvester.py -h
# For Generating email list use this command
python3.7 theHarvester.py -d gmail.com -l 500 -b google
@akkugadre
Copy link

I am getting an error
python3 theHarvester.py -h
Traceback (most recent call last):
File "/home/akkugadre/theHarvester/theHarvester.py", line 5, in
from theHarvester.theHarvester import main
File "/home/akkugadre/theHarvester/theHarvester/theHarvester.py", line 4, in
from theHarvester import main
File "/home/akkugadre/theHarvester/theHarvester/main.py", line 13, in
import ujson
ModuleNotFoundError: No module named 'ujson'

but ujson is installed I am not sure what I am doing wrong can some one please help?

@akkugadre
Copy link

I was able to get around it by using
python3 -m pip config set global.break-system-packages true
which I should probably not do since it promises to break system packages, but wth, i am on a personal system, little infractions are ok among friends right?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment