Coder Social home page Coder Social logo

monitor-new-subdomain's Introduction

                        ███╗   ███╗███╗   ██╗███████╗
                        ████╗ ████║████╗  ██║██╔════╝
                        ██╔████╔██║██╔██╗ ██║███████╗
                        ██║╚██╔╝██║██║╚██╗██║╚════██║
                        ██║ ╚═╝ ██║██║ ╚████║███████║
                        ╚═╝     ╚═╝╚═╝  ╚═══╝╚══════╝            

                        # Monitor New Subdomain
                        # @omarelfarsaoui
                        # version 1.0     

monitor-new-subdomain

Requirements

Intallation

MNS needs some dependencies, to install them on your

$ git clone https://github.com/elfarsaouiomar/monitor-new-subdomain.git
$ cd monitor-new-subdomain/
$ pip3 install -r requirements.txt

Usage

add domain to monitor. E.g: domain.com

python3 check-new-subdomain.py -a  domain.com

list all domain in database

python3 check-new-subdomain.py -l

get all subdomain for specific domain

python3 check-new-subdomain.py -L domain.com

search fo new subdomain for all domains

python3 check-new-subdomain.py -m

export all subdomains form the database to txt file

python3 check-new-subdomain.py -e

import list of domains via file

each domain in line

python3 check-new-subdomain.py -i domains.txt

delete domain

python3 check-new-subdomain.py -d

send notification via slack

python3 check-new-subdomain.py -s

send notification via telegram

python3 check-new-subdomain.py -t

Docker Section

Build

docker-compose build

run containers

docker-compose up -d

you can easly eun command now inside containers

docker-compose run mns -a domain.com

Check out this video on youtube how to use MNS with docker https://www.youtube.com/watch?v=w47sCIqjAgQ

example

list all domains

subdomain monitor

monitor new subdomain

subdomain monitor

Import domains via file

import domains

mongoDB result

subdomain monitor

notification telegram

subdomain monitor

Feedback and issues

Create a new release

Todo

  • add output file
  • add Docker
  • Add snyk
  • add more subdomain resources
    • Certspotter
    • Virustotal
    • Sublist3r
    • Facebook **
    • Spyse (CertDB) *
    • Bufferover
    • Threatcrowd
    • Virustotal with apikey **
    • AnubisDB
    • Urlscan.io
    • SecurityTrails **
    • Threatminer

monitor-new-subdomain's People

Contributors

dependabot[bot] avatar elfarsaouiomar avatar omarelfarsaoui avatar snyk-bot avatar spiritofsea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

monitor-new-subdomain's Issues

Issue in Setup + Suggestions

Hey! Amazing work man!
I have a few question/suggestion + an issue i faced when i was installing and using tool:
1- Does this tool do the job of SubLert too? I mean Should i use it both or your tool is enough?
2- Can you please add a feature which we can control the tool using our telegram bot command? or even slack.
3- It would be great if we can add another enumerated subdomain list which we gathered from different sources and methods to the bot and database, so the tool monitor them too.
*** 4- Also The Most Important one, an ability to extend tool by our command would be super useful. Like the tool runs some commands we give to it (like in a text file, each command per line) beside the one you codded. e.g: Running nuclei with our custom Flags, HttpX with our custom Flags and ... after finishing the monitoring.

And the Issue part!
I face this error when i run the program. what should i do? I installed and configured MongoDB v4 completely.

➜  monitor-new-subdomain git:(main) ✗ python3 check-new-subdomain.py -l


        ███╗   ███╗███╗   ██╗███████╗
        ████╗ ████║████╗  ██║██╔════╝
        ██╔████╔██║██╔██╗ ██║███████╗
        ██║╚██╔╝██║██║╚██╗██║╚════██║
        ██║ ╚═╝ ██║██║ ╚████║███████║
        ╚═╝     ╚═╝╚═╝  ╚═══╝╚══════╝
    ## Monitor New Subdomains
    ## @omarelfarsaoui
    ## version 1.1
    
[!] command find requires authentication, full error: {'ok': 0.0, 'errmsg': 'command find requires authentication', 'code': 13, 'codeName': 'Unauthorized'}

Doesnt matter what flag i use, I always get this error. ive created a user with both full and standard access level and none of them worked.
Thanks Again!

Error

image
Thanks in advance.

[Feature Request] Subdomain IP Resolving

Hi there,

Just a feature request that might be a good idea - it'd be awesome to see IP resolving of the scanned subdomains implemented and possibly placed into the MongoDB, perhaps even with an option for a relevant notification to be sent if an IP on a subdomain changes.

Great job with the project overall though - very handy for my particular usecase!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.