FastRecon

module
v0.0.0-...-fda2f5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: MIT

README

FastRecon

FastRecon maps what a domain exposes. Give it a root domain; it returns the hosts that answer, the ports they expose and the HTTP services behind them, as one JSON report.

One static binary, no external tools, no root, no state: it runs as a scheduled serverless job with no machine to maintain. It is deliberately not exhaustive — it maps a perimeter quickly and keeps that map current.

Quick start

# Passive: nothing is sent to the target.
docker run --rm ghcr.io/joshuamart/fastrecon:main -d example.com --stages enum

# The whole pipeline, as a human-readable summary.
docker run --rm ghcr.io/joshuamart/fastrecon:main \
  -d example.com --stages full --ports web --format text

No API key is needed to start: crt, one of the four default sources, works without one. From source: make build, then ./bin/fastrecon -d example.com --format text.

The pipeline

 [1] ENUMERATE ──► raw subdomains (multi-source, deduplicated)
 [2] EXCLUDE ────► in-scope subdomains
 [3] RESOLVE ────► live hosts (A/AAAA/CNAME) + dead hosts
 [4] PORTSCAN ───► open ports per live host
 [5] HTTP PROBE ─► services with scheme, status, title, tech, TLS

--stages picks how far a run goes; each rung includes the ones below it.

--stages Runs Sends to the target
enum enumeration + exclusions nothing
resolve + DNS resolution nothing
ports + port scan TCP connections
full + HTTP probe (default) TCP + HTTP requests

A run

$ fastrecon -d example.com --stages full --ports 80,443 --format text

run      01M0GHWAB49MM5HBE9057HF08T
domain   example.com
scope    full (enumerate > exclude > resolve > portscan > httpprobe)
duration 2.2s
status   complete

stats
  enumerated 75    live 16    dead 59    open ports 32    http services 32

hosts
  budget.example.com          live      80/https(303) 443/https(303)
  dashboard.example.com       live      80/http(308)  443/https(200)
  ai.example.com              dead      nxdomain
  …

--format json gives the same run as a document, with per-source accounting, TLS certificates, technologies and redirect chains. Dead hosts, narrowed scans and truncated runs are reported, never dropped — see Reading a report.

Performance

Measured in a Scaleway Serverless Job at 1000 mvCPU / 1024 MB, --stages full --ports web:

75 subdomains 617 subdomains
wall time 11 s 384 s
memory peak 223 MiB 252 MiB
CPU peak 0.59 vCPU 0.51 vCPU
result 62 HTTP services 406 HTTP services

CPU consumption RAM consumption

Eight times the hosts for 13% more memory: fixed allocations dominate, not target size. The port scan takes most of the wall time (289 s of 384 s). Sizing has the formula.

Documentation

Overview what it is, the pipeline, where it runs
Usage install, scopes, target lists, everyday commands
Configuration flags, environment, exclusions, ports, resolvers, API keys
Output formats, report schema, sinks, exit codes
Deployment fastrecon serve, Scaleway jobs and containers, sizing
Design notes the decisions behind it, and how to work on it

License

MIT — see LICENSE.

Directories

Path Synopsis
cmd
fastrecon command
Command fastrecon discovers the attack surface of a domain.
Command fastrecon discovers the attack surface of a domain.
internal
app
Package app assembles a run from a configuration.
Package app assembles a run from a configuration.
config
Package config resolves the run configuration.
Package config resolves the run configuration.
enumerate
Package enumerate collects subdomains from passive sources using subfaster (uses upstream provider-config format).
Package enumerate collects subdomains from passive sources using subfaster (uses upstream provider-config format).
exclude
Package exclude removes out-of-scope hosts before any network activity.
Package exclude removes out-of-scope hosts before any network activity.
logging
Package logging configures the process logger.
Package logging configures the process logger.
pipeline
Package pipeline orchestrates the recon stages.
Package pipeline orchestrates the recon stages.
portscan
Package portscan finds open ports of live hosts using TCP connect.
Package portscan finds open ports of live hosts using TCP connect.
probe
Package probe identifies HTTP services behind open ports (httpx library, not CLI; CLI calls os.Exit).
Package probe identifies HTTP services behind open ports (httpx library, not CLI; CLI calls os.Exit).
ratelimit
Package ratelimit caps how fast a stage issues probes.
Package ratelimit caps how fast a stage issues probes.
report
Package report defines the run report: the single document every sink emits.
Package report defines the run report: the single document every sink emits.
resolve
Package resolve separates DNS-answering hosts from non-answering ones (dnsx-backed, serverless-compatible).
Package resolve separates DNS-answering hosts from non-answering ones (dnsx-backed, serverless-compatible).
runid
Package runid generates ULID-style identifiers (millisecond timestamp + randomness; chronologically sortable).
Package runid generates ULID-style identifiers (millisecond timestamp + randomness; chronologically sortable).
secrets
Package secrets resolves source API keys and keeps them out of the output.
Package secrets resolves source API keys and keeps them out of the output.
serve
Package serve exposes the pipeline over HTTP, for the serverless function deployment.
Package serve exposes the pipeline over HTTP, for the serverless function deployment.
sink
Package sink delivers a rendered report to its destinations.
Package sink delivers a rendered report to its destinations.
stage
Package stage defines the pipeline stages and the scope ladder that selects them.
Package stage defines the pipeline stages and the scope ladder that selects them.
version
Package version carries the build identity, injected at link time.
Package version carries the build identity, injected at link time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL