Coder Social home page Coder Social logo

dairosaal / enumdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m8sec/enumdb

0.0 0.0 0.0 30 KB

MySQL and MSSQL brute force and post exploitation tool to search through databases and extract sensitive information.

License: GNU General Public License v3.0

Python 93.44% Shell 6.56%

enumdb's Introduction

enumdb

Enumdb is a brute force and post exploitation tool for MySQL and MSSQL databases. When provided a list of usernames and/or passwords, it will cycle through each targeted host looking for valid credentials. By default, enumdb will use newly discovered credentials to search for sensitive information in the host's databases via keyword searches on the table or column names. This information can then be extracted and reported to a .csv or .xlsx output file. See the Usage and All Options sections for more detialed usage and examples.

The latest version, enumdb v2.0, has been adapted for larger environments:

  • Keyword searches can now be conducted on table or column names to identify sensitive information. These terms can be customized at the top of enumdb.py.
  • Threading has been added to expedite brute forcing and enumeration on larger networks.
  • Enumdb no longer generates reports by default. Reporting (csv/xlsx) must be defined in the command line arguments.
  • When extracting data for reports, users can now define a limit on the number of rows selected. The default value of 100, can be modified at the top of enumdb.py.
  • Enumdb's output formatting has been modified to provide more concise feedback when enumerating large amounts of data.

Enumdb is written in python3 and tested on Kali Linux, use the setup.sh script to ensure all required libraries are installed.

Getting Started

In the Linux terminal run:

  1. git clone https://github.com/m8r0wn/enumdb
  2. sudo chmod +x enumdb/setup.sh
  3. sudo ./enumdb/setup.sh

Usage

  • Connect to a MySQL database and search for data via key word in table name (no report)
    python3 enumdb.py -u root -p '' -t mysql 10.11.1.30

  • Connect to a MSSQL database using a domain username and search for data via keyword in column name writing output to csv file:
    python3 enumdb.py -u 'domain\\user' -p Winter2018! -t mssql -columns -report csv 10.11.1.30

  • Brute force multiple MySQL servers looking for default credentials, no data enumeration:
    python3 enumdb.py -u root -p '' -t mysql -brute 10.11.1.0-30

  • Brute force MSSQL sa account login. Once valid credentials are found, enumerate data by column name writing output to xlsx:
    python3 enumdb.py -u sa -P passwords.txt -t mssql -columns -report xlsx 192.168.10.10

  • Brute force MSSQL sa account on a single server, no data enumeration:
    python3 enumdb.py -u sa -P passwords.txt -t mssql -brute 192.168.10.10

All Options

-u USERS              Single username
-U USERS              Users.txt file
-p PASSWORDS          Single password
-P PASSWORDS          Password.txt file
-threads MAX_THREADS  Max threads (Default: 3)
-port PORT            Specify non-standard port
-report REPORT        Output Report: csv, excel (Default: None)
-t DBTYPE             Database types currently supported: mssql, mysql
-columns              Search for key words in column names (Default: table names)
-v                    Show keyword matches that respond with no data
-brute                Brute force only, do not enumerate

enumdb's People

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.