Metasploit-framework: Ascii-8bit to UTF-8 encoding in smb/psexec

Created on 14 Feb 2019  路  7Comments  路  Source: rapid7/metasploit-framework

Steps to reproduce

set smbuser j盲rvalv
set smbpass whatever
set rhost 192.168.1.10
run

Current behavior

Im getting failure due the character "盲" in smbuser
Exploit failed [no-access]: Rex::Proto::SMB::Exceptions::loginError Login Failed: "\xC3" from ASCII-8BIT to UTF-8

Version

4.17.23-dev on kali

I installed Metasploit with:

Came with Kali

What OS are you running Metasploit on?
Kali

Anyone have any idea how to fix this? Ive been trying for few days but cant seem to get it fixed. I guess i have to change encoding somewhere but where? And without breaking anything else..

ascii-utf8-issues bug module not-stale

All 7 comments

Hrm..... I thought I fixed this a long time ago. Can you give a little more info. What OS/language are you using?

Hrm..... I thought I fixed this a long time ago. Can you give a little more info. What OS/language are you using?

lsb_release -a
Kali 2019.1

locale
LANG=en_US.UTF-8
LANGUAGE=
and all the rest are en_US.UTF-8

Basically everything is like default kali install except input source is finnish.

I also updated the metasploit to 5.0.5-dev and the same thing happens.

Still an issue 2020.

Exploit failed [no-access]: Rex::Proto::SMB::Exceptions::loginError Login Failed: "\xC3" from ASCII-8BIT to UTF-8

When logging in to a Swedish locale machine where the admin account is Administrat枚r and the whole underlaying OS is in Swedish.

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It鈥檚 been at least 30 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

I mean, yea we still want this open heh.

@Torxed Thanks for keeping this issue alive! :+1:

We've updated the issue template a bit since this ticket was raised, we've also released Metasploit 6 which made changes to SMB support. It'd be great to verify if this is still an issue, and if so - seeing a stacktrace could help us greatly.

If you're able to run through these steps with a new version of Metasploit and provide the result to us, that would be great!

https://github.com/rapid7/metasploit-framework/blob/025950ec0b8454da30b040f9a9798e1dd17d6705/.github/ISSUE_TEMPLATE/bug_report.md#additional-information

@adfoster-r7 Awesome, I can give this a try next week. I think I still have a few boxes in a VM setup that runs non-us locale :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

esfomeado picture esfomeado  路  35Comments

Ashish882 picture Ashish882  路  87Comments

ortholinux picture ortholinux  路  55Comments

nixawk picture nixawk  路  56Comments

busterb picture busterb  路  30Comments