Skip to main content

Database brute force and post exploitation tool to extract sensitive data

Project description


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 detailed usage and examples.

To make the tool more adaptable on larger environments, Threading has been added to expedite brute forcing and enumeration when targeting multiple servers. Additionally, enumdb will not generate reports by default, allowing users to get a quick preview of the target database. To extract data, specify a report type in the command line arguments, with either: -r csv or -r xlsx. The first 100 rows of each identified table or column will be extracted in the output report.

Rows captured, blacklisted databases & tables, and keywords searches can all be modified at: enumdb/


Enumdb was designed and tested using Python3 for Debian based Linux systems. However, the tool is also compatible with Python2.7, and on other Linux distributions.

  • PyPi (last release)
pip3 install enumdb
  • Or, GitHub (latest code)
git clone
cd enumdb
python3 install

If experiencing issues with MySQLdb, additional MySQL development resources may need to be installed:

  • Debian / Ubuntu:
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
  • Red Hat / CentOS:
sudo yum install python3-devel mysql-devel


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

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

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

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

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


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
  -r REPORT, -report REPORT Output Report: csv, xlsx (Default: None)
  -t {mysql,mssql}          Database type
  -c, -columns              Search for key words in column names (Default: table names)
  -v                        Show failed login notices & keyword matches with Empty data sets
  -brute                    Brute force only, do not enumerate

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for enumdb, version 2.1.0
Filename, size File type Python version Upload date Hashes
Filename, size enumdb-2.1.0.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page