#!/usr/bin/env bash # Recreates the Python environments for OSINT collectors. Safe to re-run. set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" # Sherlock, python-whois, and Holehe share one lightweight venv. python3 -m venv .venv .venv/bin/pip install --upgrade pip -q .venv/bin/pip install sherlock-project python-whois holehe -q # 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."