-
-
Save linuxbiekaisar/3bf452b25a03d513a3769c97de20dfeb to your computer and use it in GitHub Desktop.
# 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 | |
I tried following the above steps, but received this message:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
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?
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?!
Bu ne için bir yazılım
you are using anaconda, that is why you are getting the following errors.
install python using apt-get, and use the default install, this should solve the problem.