Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passwordguesser returned UnicodeDecodeError #36

Closed
brianwoo opened this issue Dec 21, 2019 · 2 comments
Closed

passwordguesser returned UnicodeDecodeError #36

brianwoo opened this issue Dec 21, 2019 · 2 comments

Comments

@brianwoo
Copy link

brianwoo commented Dec 21, 2019

I ran into the UnicodeDecodeError when I ran odat on the passswordguesser module:

root@kali:~/Projects/odat# ./odat.py passwordguesser -s 10.10.10.82 -d XE --accounts-file accounts/accounts_small.txt

Traceback (most recent call last):
File "./odat.py", line 562, in
main()
File "./odat.py", line 557, in main
arguments.func(args)
File "/root/Projects/odat/PasswordGuesser.py", line 182, in runPasswordGuesserModule
args['print'].title("Searching valid accounts on the {0} server, port {1}".format(args['server'],args['port']))
File "/root/Projects/odat/Output.py", line 31, in title
m = m.encode(encoding='UTF-8',errors='ignore')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 43: ordinal not in range(128)

@sgstudent2019
Copy link

Hey there @brianwoo,

I was just facing the same issue (while doing HTB's Silo) as you did.

When you ran the command ./odat.py passwordguesser -s 10.10.10.82 -d XE --accounts-file accounts/accounts_small.txt, the Python version used was very likely to be 2+ (based on my experience here).

To get around the issue, explicitly use Python 3+. Thus, the command that you should be running is python3 odat.py passwordguesser -s 10.10.10.82 -d XE --accounts-file accounts/accounts_small.txt.

P.S. Don't forget to install the cx_Oracle module using pip3 first!
P.S.S. If you're doing OSCP as well, I would really love to hear from you (as I'm looking for someone to exchange tips and pointers with)!.

@quentinhardy
Copy link
Owner

Odat on the default branch master-python3 is compatible with python 3 only.
You has to use the python3 command (with dependencies - see readme.md) or you can use standalone version (see Release).

The new version of Odat checks the python version now (d0cabc6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants