Git Product home page Git Product logo

mongo-radar's Introduction

๐Ÿ“ก mongo-radar

         ,-.                                                                       
        / \  `.  __..-,O    88888b.d88b.  .d88b. 88888b.  .d88b.  .d88b.          
       :   \ --''_..-'.'    888 "888 "88bd88""88b888 "88bd88P"88bd88""88b         
       |    . .-' `. '.     888  888  888888  888888  888888  888888  888          
       :     .     .`.'     888  888  888Y88..88P888  888Y88b 888Y88..88P          
        \     `.  /  ..     888  888  888 "Y88P" 888  888 "Y88888 "Y88P"          
         \      `.   ' .                                      888                 
          `,       `.   \                       888      Y8b d88P                 
         ,|,`.        `-.\                      888       "Y88P"                  
        '.||  ``-...__..-`                      888                                
         |  |               888d888 8888b.  .d88888 8888b.  888d888                
         |__|               888P"      "88bd88" 888    "88 b888P"                  
         /||\               888    .d888888888  888.d88888 8888                   
        //||\\              888    888  888Y88b 888888  88 8888                  
       // || \\             888    "Y888888 "Y88888"Y88888 8888                  
    __//__||__\\__                                                               
   '--------------'                                                                

Multithread python3 script that scans and dumps mongo databases with default access (no password), through Tor sock4 proxy using proxychains and writes it into a log file.

There are tons of mongo databases without any type of authentication out there in the wild; a lot of them get hacked, that's why we should be really careful when configuring the Database.

Just for research purposes I developed an automated tool to discover and dump all the collections in the discovered mongodb list. In order to stay anonymous we use Tor service running as a SOCK4 proxy, and proxychains to capture all tcp requests made by mongo-radar and proxy them to the Tor SOCK4 port.

Usage

./mongo-radar [-h] [--out INPUT_OUT] [--ips INPUT_IPS]
                   [--workers INPUT_W] [--dump] [--kidnap INPUT_ACCOUNT]
                   
optional arguments:
  -h, --help            show this help message and exit
  --out INPUT_OUT       Define the ouput folder location.
  --ips INPUT_IPS       Define list of ips or range of ips to scan. Ex:
                        127.0.0.1,127.0.0.2-255
  --workers INPUT_WORKERS
                        Define the number of worker threads (> 4) that will be
                        doing the jobs simultaneously.
  --dump                Dumps all the databases found and saves it into out
                        directory.

Legal Disclamer

The author does not hold any responsibility for the bad use of this tool,
remember that attacking targets without prior consent is illegal and punished by law.

Requirements

  • Tor sock4 proxy running on port 9050
  • proxychains installed (binary proxychains4 on path)
  • python 3
  • pipenv
  • make
  • mongodump (provided in the package mongo-tools)

Install

Run the install goal

make install

Run

First give execution privileges

chmod +x mongo-radar

Now just execute ./mongo-radar.

mongo-radar's People

Contributors

giwiro avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rruu djhashh

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.