Comments (7)
@its0x08 I'm going to need the credentials you used to reproduce this
from crackmapexec.
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.
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.
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.
@its0x08 this is a bug with the impacket library, just filed a bug report
from crackmapexec.
@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.
now its fixed :)
from crackmapexec.
Related Issues (20)
- State of CrackMapExec HOT 4
- git tag for v6.x
- New version compilation unsuccessful
- 'utf-8' codec can't decode byte 0xf1 HOT 6
- unable to run crackmapexec on kali 2023.2 HOT 4
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 933: invalid continuation byte HOT 1
- cme wont read ANY password file
- API Authentication Error
- Delay between requests
- target needs to be first but program output says last
- ValueError: p must be exactly 1024, 2048, 3072, or 4096 bits long
- Traceback
- How to authenticate with AzureAD HOT 1
- Installing lxml (4.9.2): Failed
- --disks option is broken
- Failures when using modules (-M)
- Error while start
- Can't check many ID's from cmedb
- ValueError: too many values to unpack (expected 2) HOT 2
- Feature/extension: Free-form URLs for LNK files (slinky module) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crackmapexec.