Submon is a simple Bash script designed to monitor live subdomains across multiple target domains.
It uses passive discovery tools and filters the results through httpx, then sends a notification via Discord or Slack when new live subdomains are detected.
- Collects subdomains using:
subfinderassetfindersublist3r
- Filters only live subdomains using
httpx - Tracks newly discovered live subdomains
- Sends alerts via a single
WEBHOOK(compatible with Discord or Slack)
Ensure the following tools are installed and accessible from your terminal:
subfinder
assetfinder
sublist3r
httpx
curl
You can install them via package managers like `apt`, `brew`, or from their GitHub repositories.
---
## π File Structure
- `submon.sh` β The main script
- `domains.txt` β A text file with one root domain per line
- `submon_data/` β Output directory (auto-created)
---
## π₯ Setup
1. **Edit `submon.sh` and set your webhook:**
WEBHOOK="https://discord.com/api/webhooks/..."
or
WEBHOOK="https://hooks.slack.com/services/..."- Make the script executable:
chmod +x submon.sh- Add your target domains to
domains.txt:
example.com
target.org
anotherdomain.net
Run the script manually:
./submon.shThe script will:
- Discover subdomains from multiple tools
- Check which ones are alive using
httpx - Compare results with previous executions
- Notify you only if new live subdomains are detected
To run it daily, you can create a cronjob:
crontab -eAdd:
@daily /path/to/submon.shπ‘ New live subdomains detected for example.com
- Slack and Discord support is mutually exclusive. You can switch between them by modifying the
WEBHOOKvariable.
Marcos SuΓ‘rez (@n31ux)
Security Researcher