Skip to content

Nelux1/SUBMON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Submon - Subdomain Monitoring Script

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.


πŸš€ Features

  • Collects subdomains using:
    • subfinder
    • assetfinder
    • sublist3r
  • Filters only live subdomains using httpx
  • Tracks newly discovered live subdomains
  • Sends alerts via a single WEBHOOK (compatible with Discord or Slack)

πŸ”§ Requirements

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/..."
  1. Make the script executable:
chmod +x submon.sh
  1. Add your target domains to domains.txt:
example.com
target.org
anotherdomain.net

▢️ Usage

Run the script manually:

./submon.sh

The 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

πŸ” Automation

To run it daily, you can create a cronjob:

crontab -e

Add:

@daily /path/to/submon.sh

πŸ“¬ Example Notification

πŸ“‘ New live subdomains detected for example.com


❗ Notes

  • Slack and Discord support is mutually exclusive. You can switch between them by modifying the WEBHOOK variable.

🧠 Author

Marcos SuΓ‘rez (@n31ux)
Security Researcher


About

SUBDOMAINS MONITORING

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages