Files
osint/scripts/python/setup.sh
T
cedry2k1992andClaude Sonnet 5 bb15f13bac Add Holehe collector for email targets
Closes the email target-type gap (previously had zero collectors).
Checks whether an email is registered on 120+ sites via the
password-reset-oracle technique. Shares the Sherlock/whois venv.

HoleheRunner gates success on the CSV file existing rather than the
process exit code: holehe's CLI calls Python's exit("message") right
after writing results on its normal success path, which always yields
exit code 1 regardless of outcome — discovered while verifying this
end-to-end against the real dev server and queue worker.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-20 11:49:09 +03:00

24 lines
873 B
Bash
Executable File

#!/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."