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

UnicodeEncodeError when password contains € symbol #129

Closed
MrMarshu opened this issue Nov 30, 2023 · 0 comments · Fixed by #132
Closed

UnicodeEncodeError when password contains € symbol #129

MrMarshu opened this issue Nov 30, 2023 · 0 comments · Fixed by #132
Assignees
Labels
bug Something isn't working

Comments

@MrMarshu
Copy link

Describe the bug

When the password contains a € symbol, authentication fails due to an encoding error.
It is possible to bypass this error by using the hash.

To Reproduce
Steps to reproduce the behavior i.e.:
Command: netexec smb -u user -p Mo€bius
Resulted in:

netexec smb 192.168.56.10 -u user -p Mo€bius 
SMB         192.168.56.10   445    DC01             [*] Windows 10.0 Build 17763 x64 (name:DC01) (domain:corpo.local) (signing:True) (SMBv1:False)
[06:02:29] ERROR    UnicodeEncodeError on: 'user:Mo€bius'. Trying again with a different encoding...                                                                                                                               smb.py:467
SMB         192.168.56.10   445    DC01             [-] corpo.local\MBO:Mo€bius STATUS_LOGON_FAILURE
...

Expected behavior
A valid connection is expected.

NetExec info

  • OS: Ubuntu 22.04.1 and kali 6.5.0-kali3-amd64
  • Version of nxc: 1.1.0 - nxc4u
  • Installed from: poetry and pipx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants