# modules/features/pentest/osint.nix — open-source collection. # Off by default. `daemon.pentest.osint.enable = true;` # # Public-source collection: some tools query third-party indexes, while # username checks and crawlers also contact the sites they investigate. # Shodan requires a user API key (`shodan init`); credentials stay out of Nix. # `recon-ng`'s keystore and `sn0int`'s are per-user state. # Active DNS and host enumeration is also available in recon.nix. { lib, ... }: (import ./_sets.nix { inherit lib; }) { name = "osint"; description = "people, domain, account and metadata collection from public sources"; default = false; packages = pkgs: with pkgs; [ # Frameworks theharvester # `theHarvester` recon-ng # recon-ng, recon-cli sn0int # package-manager model, its own script registry bbot # modular reconnaissance and OSINT automation # Accounts and people sherlock maigret instaloader # public Instagram profiles and media holehe # which sites an email is registered on socialscan h8mail # breach-corpus lookups # Internet-wide service index (ships both its CLI and Python library). python3Packages.shodan uncover # query multiple internet search indexes # Domains and names whois asnmap # organization, ASN and network-range mapping dnstwist # typosquats and homoglyphs of a domain fierce # What a target has already published assetfinder waybackurls # URLs the Wayback Machine has for a host gau # the same idea, more sources waymore # historical URLs and archived responses urlfinder # passive URL aggregation photon # crawler that keeps the interesting strings # Their code and their files gitleaks # secrets in a git history trufflehog # the same, plus verification of live keys exiftool # broad image, document and media metadata support exifprobe # exifprobe, exifgrep — metadata out of published documents ]; expectedBins = [ "theHarvester" "recon-ng" "recon-cli" "sn0int" "bbot" "sherlock" "maigret" "instaloader" "holehe" "socialscan" "h8mail" "shodan" "uncover" "asnmap" "whois" "dnstwist" "fierce" "assetfinder" "waybackurls" "gau" "waymore" "urlfinder" "photon" "gitleaks" "trufflehog" "exiftool" "exifprobe" "exifgrep" ]; # The python ones, actually run: a tool that installs and then dies on a # missing module passes `command -v` and fails you mid-engagement. This is # how `masky` was caught (see _overlay.nix). smokeBins = [ "bbot" "waymore" "instaloader" "sherlock" "maigret" "shodan" "theHarvester" "holehe" "dnstwist" "photon" "h8mail" "socialscan" "fierce" ]; }