#!/bin/bash
# Phase 7 — OSINT & Recon
source "$(dirname "$0")/lib.sh"

phase_header "PHASE 7 — OSINT & Intelligence Gathering"

section "Email & People"
chk "theHarvester"      theHarvester
chk_py "h8mail"         h8mail
chk_py "holehe"         holehe
chk_py "maigret"        maigret
chk_py "socialscan"     socialscan
chk_opt "GHunt"         ghunt

section "Username / Social"
chk_dir "CrossLinked"   /opt/CrossLinked
chk "sherlock"          sherlock

section "Domain Intelligence"
chk "shodan"            shodan
chk_py "censys"         censys
chk_py "duckduckgo_search" duckduckgo_search
chk_py "ipinfo"         ipinfo

section "GitHub / Code Recon"
chk "gitleaks"          gitleaks
chk "trufflehog"        trufflehog
chk "git-dumper"        git-dumper
chk_py "PyGithub"       github

section "Passive Recon"
chk "gau"               gau
chk "waybackurls"       waybackurls
chk_dir "recon-ng"      /opt/recon-ng
chk "spiderfoot"        spiderfoot

section "OSINT Frameworks"
chk_dir "recon-ng"      /opt/recon-ng
chk "spiderfoot"        spiderfoot

section "Network Intelligence"
chk "whois"             whois
chk "dnsrecon"          dnsrecon
chk "dnsenum"           dnsenum
chk "fierce"            fierce
chk "nbtscan"           nbtscan

phase_summary
