SubMonstr: See What Your Domain Exposes Before Someone Else Does

Leader ●5
calendar_today ago • schedule2 min read
— Originally published at dev.to

By MONSIF HMOURI

Image descriptionThe risk you don't see

A server you forgot is still available to an attacker. It might be a test environment built for a few days, an old admin panel, or an API nobody maintains that still responds.

These hosts often get less monitoring and fewer updates than the main website. Assessing any domain therefore starts with a simple question: which subdomains actually exist?

Answering it by hand is slow. The clues are spread across certificate logs, historical DNS records, web archives and open intelligence platforms. I built SubMonstr to gather them with one command.

What SubMonstr is

SubMonstr is an open-source, MIT-licensed subdomain enumeration tool written in Go. It runs in the terminal and uses only the Go standard library, with no third-party dependencies.

A scan has stages, and you choose the ones you need:

  1. Passive collection: queries 24 sources concurrently, including crt.sh, VirusTotal, Shodan and SecurityTrails. This stage sends no requests to the target.
  2. DNS verification: keeps the names that resolve and filters out misleading wildcard answers.
  3. Brute force: tries a built-in wordlist, or your own, to find names the sources missed.
  4. Web probing: shows the HTTP status code and page title of each service that answers.

Of the sources, 9 need no account, 4 accept an optional key and 11 require an API key. You add keys inside the tool, and they are stored in a private file outside the code. If you add several keys for one source, SubMonstr moves to the next when one is rejected or runs out of quota.

One failing source does not stop the scan. Some providers may require a paid plan or change their limits over time.

Get started

You need Go 1.22 or newer. Install the tool with one command:

go install github.com/monsifhmouri/SubMonstr/cmd/submonstr@latest
export PATH="$PATH:$(go env GOPATH)/bin"

Then run what fits your task:

submonstr                          # interactive menu
submonstr config                   # add your API keys
submonstr example.com -o subs.txt  # passive scan, save results
submonstr example.com -b -p        # brute force and HTTP probe

Output is clean text, or JSON lines with -j, so you can pass it to your other tools. The code is available in the SubMonstr repository.

Who it is for

  • Bug bounty hunters: widen your view of the assets a program puts in scope.
  • Security researchers: see which source revealed each host through JSON output.
  • Company security teams: review your external attack surface and spot forgotten hosts.
  • Students: learn reconnaissance through a simple menu, on authorized targets.

Use it responsibly

Scan only domains you own or have explicit permission to test. DNS verification, brute force and web probing send traffic related to the target, so check the program's rules first. A subdomain in the results is not a vulnerability. It is where verification begins.

Tell me what you think

Start with your own domain: you may find a host you forgot. Then tell me what is missing, which source you want next and where you got stuck. Contribute on GitHub or reach me on Telegram, Instagram and LinkedIn.

Want more #opensource & #security deep dives?

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

More Posts

Your AI Doesn't Just Write Tests. It Runs Them Too.

Kevin Martinez - May 12

AAIF Hits 10 Projects. Its CTO on What to Adopt Now and the Security Gaps Left Open

Tom Smithverified - Oct 23

What Security Teams Want From AI Agents Before They Let Them Act Alone

Tom Smithverified - Nov 18

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4

Attention-Free Score: How Domain Reports Show Which Pages Need Work

ApogeeWatcherverified - Sep 1
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)

23 comments
4 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!