Giter Site home page Giter Site logo

Comments (7)

byt3bl33d3r avatar byt3bl33d3r commented on May 18, 2024

@its0x08 I'm going to need the credentials you used to reproduce this

from crackmapexec.

its0x08 avatar its0x08 commented on May 18, 2024

some times i use this command
python crackmapexec.py -t 100 192.168.200.0-255 -u admin -p ../list/user.txt --shares
sometime this
python crackmapexec.py -t 100 192.168.200.0-255 -u admin,guest,administrator -p admin,password,1234,guest,user,administrator --shares

from crackmapexec.

its0x08 avatar its0x08 commented on May 18, 2024

once again ...

root@backbox:/home/its_0x08/Desktop/exploits/CrackMapExec# python crackmapexec.py -t 25 192.168.192.0/24 -u admin -p admin,password --shares
[_] 192.168.192.38:445 is running Windows 6.1 Build 7601 (name:1-ПК) (domain:1-ПК)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(_self.args, **self.kwargs)
File "crackmapexec.py", line 2937, in connect
smb = smart_login(host, smb, domain)
File "crackmapexec.py", line 2715, in smart_login
smb.login(user, passwd, domain)
File "/usr/local/lib/python2.7/dist-packages/impacket/smbconnection.py", line 210, in login
return self._SMBConnection.login(user, password, domain, lmhash, nthash)
File "/usr/local/lib/python2.7/dist-packages/impacket/smb3.py", line 678, in login
blob['MechToken'] = str(auth)
File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 170, in str
return self.getData()
File "/usr/local/lib/python2.7/dist-packages/impacket/ntlm.py", line 211, in getData
return Structure.getData(self)
File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 121, in getData
data += self.packField(field[0], field[1])
File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 106, in packField
ans = self.pack(format, self.fields[fieldName], field = fieldName)
File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 263, in pack
return str(data)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 2-3: ordinal not in range(128)
<Greenlet at 0xb65a048cL: connect('192.168.192.38')> failed with UnicodeEncodeError

[] 192.168.192.53:445 is running (name:KATRIN) (domain:KATRIN)
[+] 192.168.192.53:445 Login successful KATRIN\admin:admin
[
] 192.168.192.59:445 is running Windows 6.1 Build 7601 (name:ASUS-PC) (domain:ASUS-PC)
[_] 192.168.192.64:445 is running Windows 6.1 Build 7601 (name:НИКА-ПК) (domain:НИКА-ПК)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(_self.args, **self.kwargs)
File "crackmapexec.py", line 2937, in connect
smb = smart_login(host, smb, domain)
File "crackmapexec.py", line 2715, in smart_login
smb.login(user, passwd, domain)
File "/usr/local/lib/python2.7/dist-packages/impacket/smbconnection.py", line 210, in login
return self._SMBConnection.login(user, password, domain, lmhash, nthash)
File "/usr/local/lib/python2.7/dist-packages/impacket/smb3.py", line 678, in login
blob['MechToken'] = str(auth)
File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 170, in str
return self.getData()
File "/usr/local/lib/python2.7/dist-packages/impacket/ntlm.py", line 211, in getData
return Structure.getData(self)
File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 121, in getData
data += self.packField(field[0], field[1])
File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 106, in packField
ans = self.pack(format, self.fields[fieldName], field = fieldName)
File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 263, in pack
return str(data)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
<Greenlet at 0xb535f66cL: connect('192.168.192.64')> failed with UnicodeEncodeError

[-] 192.168.192.59:445 ASUS-PC\admin:admin SMB SessionError: STATUS_LOGON_FAILURE(The attempted logon is invalid. This is either due to a bad username or authentication information.)
[+] 192.168.192.53:445 KATRIN Available shares:
SHARE Permissions
----- -----------
PDF NO ACCESS
print$ NO ACCESS
IPC$ NO ACCESS
[] 192.168.192.79:445 is running Windows 6.3 Build 9600 (name:TOSHIBA_I7) (domain:TOSHIBA_I7)
^CKeyboardInterrupt
[
] Got CTRL-C! Exiting..
root@backbox:/home/its_0x08/Desktop/exploits/CrackMapExec#

from crackmapexec.

asolino avatar asolino commented on May 18, 2024

That seems to be an Impacket bug when negotiating against a machine that has those International characters. Please fill up a bug at https://github.com/CoreSecurity/impacket/issues

from crackmapexec.

byt3bl33d3r avatar byt3bl33d3r commented on May 18, 2024

@its0x08 this is a bug with the impacket library, just filed a bug report

from crackmapexec.

asolino avatar asolino commented on May 18, 2024

@its0x08 I just fixed this issue, could you please recheck so I'm sure it's fixed correctly? You will need to git pull the latest impacket repo.

from crackmapexec.

its0x08 avatar its0x08 commented on May 18, 2024

now its fixed :)

from crackmapexec.

Related Issues (20)

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.