By MONSIF HMOURI
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:
- Passive collection: queries 24 sources concurrently, including crt.sh, VirusTotal, Shodan and SecurityTrails. This stage sends no requests to the target.
- DNS verification: keeps the names that resolve and filters out misleading wildcard answers.
- Brute force: tries a built-in wordlist, or your own, to find names the sources missed.
- 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.
