SubMonstr A Fast Subdomain Enumeration Framework in Go for Bug Bounty

SubMonstr A Fast Subdomain Enumeration Framework in Go for Bug Bounty

Leader ●5
calendar_today ago • schedule3 min read

Subdomain enumeration is the first step of most web recon. Before you test anything, you need to know what exists: forgotten staging hosts, old APIs, internal tools exposed by mistake. The usual workflow is to run several tools, merge their output, remove duplicates and filter wildcard noise by hand.

SubMonstr is an open-source framework that puts those steps in one tool. It is written in Go, ships as a single static binary with zero third-party dependencies, and queries 24 passive sources concurrently.

What it does

  • 24 passive sources. Nine work without any account, and four more work anonymously and accept an optional key.
  • Built-in API key manager with multi-key rotation. Keys never live in the source code.
  • DNS verification, brute force and wildcard filtering, so results are real names and not noise.
  • HTTP/HTTPS probing that reports the status code and page title.
  • Interactive menu, pipeable output and JSON lines, so it fits into your own scripts and pipelines.

Install

Pick whichever method suits you.

# 1) With Go (1.22 or newer)
go install github.com/monsifhmouri/SubMonstr/cmd/submonstr@latest
export PATH="$PATH:$(go env GOPATH)/bin"
 
# 2) From source, system wide
sudo apt install -y git golang-go make
git clone https://github.com/monsifhmouri/SubMonstr.git
cd SubMonstr
./install.sh
 
# 3) Debian package (from the Releases page)
sudo apt install ./submonstr_1.0.0_amd64.deb

Usage

submonstr                          # interactive menu
submonstr example.com              # passive scan
submonstr example.com -o subs.txt  # save results
submonstr example.com -a -v        # only live names, with IPs
submonstr example.com -b -p -t 100 # brute force + HTTP probe
submonstr -l domains.txt -silent   # many domains, pipe friendly
submonstr example.com -j -o out.jsonl

The flags you will use most:

Flag What it does
-a Keep only names that resolve (wildcards filtered)
-b, -w DNS brute force, with an optional custom wordlist
-p HTTP status and page title
-free Use only sources without a mandatory key
-s, -es Use only, or exclude, specific sources
-t Threads (default 50)
-j, -o JSON lines output, output file
-silent Print results only, ideal for pipes

Sources and API keys

Nine sources need nothing at all: crt.sh, AnubisDB, Subdomain Center, RapidDNS, the Internet Archive, Common Crawl, Shrewdeye, CertificateDetails and MySSL. If you want more coverage, add keys for providers such as VirusTotal, SecurityTrails, Shodan, GitHub and others.

submonstr config                        # interactive key manager
submonstr config set virustotal         # hidden prompt
submonstr config set github KEY1,KEY2   # automatic rotation
submonstr config test                   # check your keys
submonstr sources                       # status of every source

Keys are stored in ~/.config/submonstr/config.json with owner-only permissions, and environment variables such as SUBMONSTR_VIRUSTOTAL_KEY override the file.

A failing source never stops the scan. Providers change their plans, limits and endpoints over time, and some APIs need a paid plan for the subdomain endpoint, so run with -v to see why a source returned nothing.

A simple workflow

  1. Start passive and free: submonstr target.com -free -o passive.txt
  2. Keep only live names: submonstr target.com -a -o live.txt
  3. Add brute force and probing on scope you are allowed to touch: submonstr target.com -b -p -t 100
  4. Export JSON lines for the rest of your pipeline: submonstr target.com -j -o out.jsonl

Use it responsibly

Only run SubMonstr on domains you own or are explicitly authorized to test. Passive mode queries third-party services, while -a, -b and -p send traffic related to the target. Always read the program scope before you scan.

Build and contribute

make test      # vet and unit tests
make build     # local binary
make release   # all platforms in dist/
make deb       # Debian packages

The repository includes a contributing guide, a security policy, a changelog, shell completions and English and Arabic READMEs.

Try it

If a source breaks, a provider changes its API, or you have a feature in mind, open an issue. Feedback from people who use it in real recon is what improves it.

Monsif Hmouri is a security researcher and bug bounty hunter who builds open-source security tools.

Want more #tools & #bugbounty deep dives?

Join 6,181+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

1 Comment

1 vote

More Posts

Free SEO Tools Every Small Business Should Use (2026) | FloxoLab

floxolab - Oct 20

What Is SARIF and How Does It Help Security Tools Work Together?

Ganesh Kumar - Jul 4

Whey Protein for Desk Workers in India: Concentrate vs Isolate vs Hydrolysed (A Plain-English Guide)

Dilip Kumar - Nov 23

Python for commerce students, from a former bio kid

rahuldk1105 - Oct 30

The Audit Trail of Things: Using Hashgraph as a Digital Caliper for Provenance

Ken W. Algerverified - Apr 28
chevron_left
807 Points • 5 Badges
MA
4Posts
0Comments
3Connections
Security research is not just something I study It is the path I chose for myself I focus on finding... Show more

Commenters (This Week)

20 comments
7 comments
2 comments

Contribute meaningful comments to climb the leaderboard and earn badges!