Sunday, October 11, 2026

Discover for automating recon, scanning and reporting on authorized engagements

Discover for automating recon, scanning and reporting on authorized engagements

Discover is a Bash and Python automation framework that chains reconnaissance, scanning, enumeration and reporting tasks into a single menu-driven workflow for authorized penetration testers.

Toolleebaird/discover — menu-driven Bash/Python automation suite for recon, scanning, enumeration and engagement reporting
CategoryOffensive automation framework / recon and enumeration orchestration (Shell)
Primary UseRunning end-to-end passive and active reconnaissance, web scanning, and structured HTML report generation during authorized assessments
Safe UseIntended for penetration testers working under signed authorization on scoped engagements, lab environments, and internal security assessments
Telemetry NoteGenerates heavy, fingerprintable traffic: nmap TCP/UDP scans, httpx/whatweb probes, nikto, ffuf/feroxbuster content brute-forcing, and nuclei template runs — all visible in WAF, IDS and SIEM logs; a consistent scan User-Agent ties probes together

Discover from leebaird/discover is a long-lived automation suite written primarily in Bash and Python that packages the tedious middle of a penetration test — reconnaissance, scanning, enumeration, and reporting — into a single interactive menu. Rather than inventing new techniques, it orchestrates dozens of established tools (Amass, nmap, httpx, whatweb, nuclei, nikto, feroxbuster, ffuf, WPScan, droopescan, theHarvester, Metasploit) behind consistent, opinionated defaults, and then assembles the results into structured HTML engagement reports. With nearly four thousand stars and an MIT license, it is one of the more mature open-source workflow frameworks in this space, targeting Ubuntu as its primary platform with limited Kali Linux support.

Installation is deliberately minimal, which tells you something about the project's design philosophy: you clone the repository to your home directory and run ./discover.sh. There is no package build step because the tool is a set of scripts rather than an application. First run prompts for an operator first name, persisted to ~/.discover/operator-name, and that name is stamped onto every line of the engagement audit log. That detail matters more than it first appears — it means the tool was built around multi-operator consulting workflows where accountability for who ran what is a deliverable requirement, not an afterthought.

The main menu is organized into four phases: RECON (domain and person), SCANNING (target list generation, CIDR, lists, single IP/range/URL, plus re-running Nmap scripts and MSF aux modules), WEB (IDOR checks, Firefox tab bursts, nikto, SSL review), and MISC (payload generation via Metasploit, listeners, CVE lookup, XML parsing, dev tools, notes, update). The structure mirrors how engagements actually unfold in authorized assessments — scope in, targets enumerated, web surface reviewed, findings parsed — rather than an arbitrary tool taxonomy. Option 18 handles updating the OS and dependencies, which is a pragmatic necessity for a tool that shells out to so many external binaries.

The reconnaissance module is where the project's depth shows. Passive domain recon fans out across Amass, ARIN, DNSRecon, dnstwist, subfinder, sublist3r, theHarvester, Whois, Shodan's free certificate-transparency hostname list, and multiple websites, depositing an HTML report under $HOME/data/<domain>/. Personnel enrichment is unusually thoughtful for a recon tool: for US public companies it pulls DEF 14A proxy statements and Form 4 filings from SEC EDGAR to harvest executive names, and derives headquarters location from 10-K filings with a manual override file at tools/company-manual.tsv. The README notes that passive and active modules refuse to run as root — a small but telling safety guardrail against running heavyweight enumeration with unnecessary privileges.

The documented engagement workflow is a five-stage pipeline: passive recon builds the report, the engagement is registered by opening it, Audit > Import merges names, titles, emails, or subdomains (including packages from other operators), then active scanning fingerprints live hosts, and finally export produces Client, Defender, or Operator packages. The export differentiation is significant from a defensive documentation standpoint — a Defender package presumably curates findings for the blue team's remediation workflow, while the Operator package preserves internal scan artifacts. Import operations have CLI equivalents such as recon/import-subdomains.sh --report ... --mode team-csv --import ... --json, enabling scripting and team handoffs.

Active enumeration is gated by sensible DNS hygiene. Discover resolves each subdomain with dig A @1.1.1.1 before touching httpx, deliberately avoiding VPN-provided DNS resolvers. Private, loopback, link-local, and 0.0.0.0 answers are excluded from HTTP probing and shunted into tools/private-subs and tools/dns-private.tsv, which keeps internal ranges out of external scans unless the operator explicitly chooses to include them. Hosts considered alive by httpx (status codes 200–399, 401, 403, or 405) then get whatweb fingerprinting and gowitness screenshotting, merged by recon/active-tech.py into report artifacts stored under tools/ (httpx.jsonl, whatweb.json, gowitness/).

The host-scan subsystem is the most architecturally interesting part of the README. Each public subdomain row in the report UI gets expandable scan boxes for robots.txt review, nmap, nuclei, droopescan, WPScan, nikto, feroxbuster, and ffuf — but crucially, these are gated. nuclei only appears when a product is fingerprinted; droopescan only for supported CMS platforms like Drupal, Joomla, Moodle, and Silverstripe; WPScan only for WordPress. Every HTTP-based tool is preceded by a curl HTTP/1.1 reachability probe with a 15-second timeout, and if the host doesn't answer, the tool simply doesn't run — the box renders as Unreachable, and status.json records skip_reason=host_unreachable. This is noise reduction as a first-class feature, which both reduces operator load and limits collateral scan traffic against hosts outside effective scope.

Software fingerprinting drives CVE correlation. Discover reads technology tokens from whatweb output, preserving versions where present (the README gives the example of Kibana:9.4.2), then falls back through page title, web server, and hostname heuristics — a long priority list covering infrastructure products like Grafana, Jenkins, Elasticsearch, Keycloak, GitLab, Harbor, Argo CD, Nexus, and pgAdmin. The identified product string feeds run-host-scan.sh, where nuclei Pass 1 runs product-tagged templates and Pass 2 automatically runs CVE and CISA KEV template checks from an engagement-local software-CVE cache. In effect, Discover closes the loop from fingerprint to known-exploited-vulnerability triage without the operator manually correlating anything.

Beyond scanning, the tool includes operational conveniences that reveal its consulting pedigree. An optional shell helper config (config/zshrc via install.sh) installs short aliases like n for a network summary, m/ms for starting and stopping the Metasploit database, web/web2 for quick HTTP servers, and bh for BloodHound — with network identity computed at invocation time rather than shell startup so values stay correct after VPN or Wi-Fi transitions. An optional Google Sheet integration appends host-scan rows to a shared spreadsheet for team coordination, with graceful degradation if uv or the token is missing, and client/defender exports deliberately omit the internal notes URL.

From a defender's perspective, Discover is loud by design and easy to detect. Its scans produce classic signatures: nmap -Pn -n --open -sTV TCP sweeps and sudo-gated sUV UDP probes, nikto runs capped at roughly ten minutes with hard stops, ffuf and feroxbuster content discovery at a throttled 20 requests per second with 10 threads, whatweb fingerprinting, and nuclei template execution. A single consistent User-Agent ties the reachability probe to the subsequent scan. Security teams watching for this activity in authorized purple-team exercises should focus on the burst patterns of content-discovery wordlists, the robots.txt fetches, and clustered subdomain enumeration from public data sources.

Caveats worth noting for anyone deploying it: the README documents an edge case where raw UDP sendto can be blocked on VPN/TUN interfaces (Discover handles this gracefully by warning rather than mislabeling tcpwrapped fingerprints), and re-running the shell-helper installer on Kali can duplicate the alias block in ~/.zshrc. Some menu options require root, and the passive/active recon split explicitly forbids root execution, so operators need to manage privilege context per module. The MISC menu's Metasploit payload-generation options should be understood strictly within the tool's stated purpose — authorized penetration testing under contract, in lab or scoped environments.

Taken as a whole, Discover earns its place as a workflow framework rather than yet another scanner. Its distinguishing choices — per-operator audit logging, DNS-based internal/external separation, reachability gating, product-aware scan selection, automated KEV/CVE correlation, and differentiated client/defender/operator exports — reflect years of refinement around how real engagements are run and delivered. For authorized professionals who currently stitch together recon and reporting by hand, it is a well-documented, actively maintained example of what offensive automation looks like when it is built for accountability as much as for speed.

Official project repository for leebaird/discover.
Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.

Sponsored
Share articleFacebookXLinkedIn

Continue exploring

Browse all articles →

0 comentários:

Post a Comment

Note: Only a member of this blog may post a comment.