2026-07-20 10:22:05 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
# Recreates the Python environments for OSINT collectors. Safe to re-run.
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
|
|
2026-07-20 11:49:09 +03:00
|
|
|
# Sherlock, python-whois, and Holehe share one lightweight venv.
|
2026-07-20 10:22:05 +03:00
|
|
|
python3 -m venv .venv
|
|
|
|
|
.venv/bin/pip install --upgrade pip -q
|
2026-07-20 11:49:09 +03:00
|
|
|
.venv/bin/pip install sherlock-project python-whois holehe -q
|
2026-07-20 10:22:05 +03:00
|
|
|
|
|
|
|
|
# theHarvester (>=4.7 needs Python 3.12; pinned to 4.6.0 for 3.9+ compat)
|
|
|
|
|
# pulls in a much heavier dependency set (playwright, censys, shodan, fastapi),
|
|
|
|
|
# so it gets its own venv.
|
|
|
|
|
python3 -m venv .venv-theharvester
|
|
|
|
|
.venv-theharvester/bin/pip install --upgrade pip -q
|
|
|
|
|
|
|
|
|
|
if [ ! -d theharvester-src ]; then
|
|
|
|
|
git clone --branch 4.6.0 --depth 1 https://github.com/laramies/theHarvester.git theharvester-src
|
|
|
|
|
rm -rf theharvester-src/.git
|
|
|
|
|
fi
|
|
|
|
|
.venv-theharvester/bin/pip install -r theharvester-src/requirements/base.txt -q
|
|
|
|
|
|
|
|
|
|
echo "Done."
|