Coder Social home page Coder Social logo

m8sec / enumdb Goto Github PK

View Code? Open in Web Editor NEW
214.0 214.0 69.0 70 KB

Relational database brute force and post exploitation tool for MySQL and MSSQL

License: GNU General Public License v3.0

Python 100.00%
brute-force database enumeration mssql mysql pentest-tool pentesting post-exploitation python3

enumdb's Introduction

enumdb's People

Contributors

m8sec 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

enumdb's Issues

Not working

Hello, I've installed all libs and tested on my localhost, but it doesnt works.

Starting enumdb v2.0.1

[-] Login failed root:[email protected]

Everytime and every server that I tried I got this. Do you what it can be?

create setup.py and support system wide installation

You should get rid of setup.sh and use setup.py to unify the installation for any Linux distribution.
Then, the following command should be used:
python setup.py install {--user}

All output of the tool should be redirected to ~/.enumdb or similar.

Thread(target=enum_db().db_main, args=(args, t,), daemon=True).start()

root@hw1-live:/srv/qwe/sqli-scanner/sqliv/enumdb# python enumdb.py -u root -p Password1 -brute 127.0.0.1 -t mssql

Starting enumdb v2.0.4

Traceback (most recent call last):
File "enumdb.py", line 446, in
main(args)
File "enumdb.py", line 395, in main
Thread(target=enum_db().db_main, args=(args, t,), daemon=True).start()
TypeError: init() got an unexpected keyword argument 'daemon'
root@hw1-live:/srv/qwe/sqli-scanner/sqliv/enumdb#

Compiling issue [workaround]

I tried to compile the py to be portable with the following command:

pyinstaller -D -F -n main -c "enumdb.py"

But when i run it i get the following error:

Starting enumdb v2.0.4
-------------------------
Traceback (most recent call last):
  File "enumdb.py", line 446, in <module>
  File "enumdb.py", line 395, in main
TypeError: __init__() got an unexpected keyword argument 'daemon'
[10146] Failed to execute script enumdb

In order to fix it i removed the daemon parameter in the Thread function

Thread(target=enum_db().db_main, args=(args, t,)).start()

It would be great to have a standard procedure (change param in pyinstaller? change source?), in the meantime here is my workaround (and it's working).

P.s. awsome project :)

Error when running against MSSQL

./enumdb.py 10.x.x.x -u sa -p sa -t mssql -columns
`Starting enumdb v.2.0

[+] Connection established sa:[email protected]
[] Column: className Table: autoadmin_task_agents DB: msdb SRV:
(mssql)
[
] Column: is_password_protected Table: backupmediaset DB: msdb SRV:
(mssql)
[*] Column: is_password_protected Table: backupset DB: msdb SRV: 10.60.111.107 (mssql)
Exception in thread Thread-1:
Traceback (most recent call last):
File "pymssql.pyx", line 447, in pymssql.Cursor.execute
File "_mssql.pyx", line 1011, in _mssql.MSSQLConnection.execute_query
File "_mssql.pyx", line 1042, in _mssql.MSSQLConnection.execute_query
File "_mssql.pyx", line 1175, in _mssql.MSSQLConnection.format_and_run_query
File "_mssql.pyx", line 1586, in _mssql.check_cancel_and_raise
File "_mssql.pyx", line 1630, in _mssql.maybe_raise_MSSQLDatabaseException
_mssql.MSSQLDatabaseException: (942, b"Database 'IGT' cannot be opened because it is offline.DB-Lib error message 20018, severity 14:\nGeneral SQL Server error: Check messages from the SQL Server\n")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "./enumdb.py", line 197, in db_main
self.db_enum(class_obj, args.dbtype, con, outfile, target, args.column_search, args.report, args.verbose)
File "./enumdb.py", line 206, in db_enum
for table in db_class.get_tables(con, database):
File "./enumdb.py", line 165, in get_tables
for x in self.db_query(con, 'SELECT NAME FROM {}.sys.tables;'.format(database)):
File "./enumdb.py", line 152, in db_query
cur.execute(cmd)
File "pymssql.pyx", line 467, in pymssql.Cursor.execute
pymssql.OperationalError: (942, b"Database 'IGT' cannot be opened because it is offline.DB-Lib error message 20018, severity 14:\nGeneral SQL Server error: Check messages from the SQL Server\n")
`

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes

[root@localhost enumdb]# python enumdb.py
File "enumdb.py", line 421
** Having trouble with inputs? Use '' around username & password **""".format(argv[0], version), formatter_class=argparse.RawTextHelpFormatter, usage=argparse.SUPPRESS)
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 447-448: truncated \uXXXX escape

Can't run in termux……
view https://github.com/termux/termux-packages
view https://github.com/sdrausty/TermuxArch

The same error all the time
_20181114222838

No module named 'MySQLdb'

help for Following issue. Thanks.

$ python3 enumdb.py
Traceback (most recent call last):
File "enumdb.py", line 7, in
import MySQLdb
ImportError: No module named 'MySQLdb'

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.