m8sec/enumdb

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

ycathi opened this issue · 5 comments

[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

m8sec commented

Hi @ycathi,
Oh no! I was able to replicate the issue and think we have it addressed. Please let me know if there are any more issues with the program. Thank you for your help!
-m8r0wn

@m8r0wn Sorry, too busy today

1、In TermuxArach , the MySQLdb.connect is use like this
con = MySQLdb.connect(host=host, user=user, password=passwd)

2、Another problem is pymssql ,there is no packages

[root@localhost enumdb]# pacman -Ss mssql
[root@localhost enumdb]#

So I annotated the code

#import pymssql

3、After modification,It works.

Thanks.

1、In Termux , you can install mysql support by pip
pip install pymysql
if error happens
apt install lib* lib*dev
and try again
pip install pymysql

2、replace MySQLdb in enumdb.py
perl -pi -e 's/MySQLdb/pymysql/g' enumdb.py

3、And so, install openpyxl like this
pip install openpyxl

4、But,there is a problem
_20181117125357

em, single password is correct
sss

m8sec commented

Hi @ycathi,

This is great information for users attempting to use enumdb from Termux. The original issue pertained to all users and has since been addresses. However, I am going to label this as an enhancement and work on getting a dev environment setup to potentially add a setup script for Termux. I also want to look into some of the pip/pip3 concerns to see if we can get mssql working for those users as well. Pull requests welcome :)

Thank you for the help,
m8r0wn

m8sec commented

Pull requests welcome, but unfortunately I don't have the time to research this potential improvement right now. Closing issue.

-m8r0wn