byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.46k stars 1.64k forks source link

h #24

Closed its0x08 closed 9 years ago

its0x08 commented 9 years ago

h

byt3bl33d3r commented 9 years ago

@its0x08 This was addressed in #16 , do a git pull and it should be fixed. If not comment below.

byt3bl33d3r commented 9 years ago

Just made some changes that might resolve this, let me know if this is fixed

its0x08 commented 9 years ago

not yet :/ .. same output again! root@backbox:/home/its0x08/Desktop/exploits/CrackMapExec# python crackmapexec.py -t 100 192.168.192.0-255 [] 192.168.192.71:445 is running Windows 6.1 Build 7601 (name:PC-20150922UBVI) (domain:PC-20150922UBVI) [] 192.168.192.89:445 is running Windows 6.3 Build 9600 (name:LENOVO-PC) (domain:LENOVO-PC) [] 192.168.192.55:445 is running Windows 10.0 Build 10240 (name:HP) (domain:HP) 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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-6: ordinal not in range(128) <Greenlet at 0xb535752cL: connect('192.168.192.146')> failed with UnicodeEncodeError

[_] 192.168.192.208:445 is running Windows 6.3 Build 9600 (name:CHERRY) (domain:CHERRY) 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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-11: ordinal not in range(128) <Greenlet at 0xb49d593cL: connect('192.168.192.197')> failed with UnicodeEncodeError

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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) <Greenlet at 0xb49e202cL: connect('192.168.192.218')> failed with UnicodeEncodeError

^CKeyboardInterrupt [*] Got CTRL-C! Exiting.. root@backbox:/home/its_0x08/Desktop/exploits/CrackMapExec#

its0x08 commented 9 years ago

again and again ... -_- root@backbox:/home/its0x08/Desktop/exploits/CrackMapExec# python crackmapexec.py -t 100 192.168.205.0-255 [] 192.168.205.6:445 is running Windows 6.1 Build 7601 (name:HOME-PC) (domain:HOME-PC) [] 192.168.205.61:445 is running Windows 6.1 Build 7601 (name:ASPIRE-PC) (domain:ASPIRE-PC) [] 192.168.205.90:445 is running Windows 6.1 Build 7600 (name:MACBOOK-PRO-MACBOOK) (domain:MACBOOKPRO-8A48) 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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128) <Greenlet at 0xb6610d9cL: connect('192.168.205.28')> failed with UnicodeEncodeError

[] 192.168.205.118:445 is running Windows 6.3 Build 9600 (name:PC) (domain:PC) [] 192.168.205.5:445 is running Windows 10.0 Build 10240 (name:HOME) (domain:HOME) [_] 192.168.205.20:445 is running Windows 6.1 Build 7601 (name:GEOLOG) (domain:GEOLOG) 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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128) <Greenlet at 0xb65b966cL: connect('192.168.205.55')> failed with UnicodeEncodeError

[] 192.168.205.171:445 is running Windows 6.2 Build 9200 (name:IDEA-PC) (domain:IDEA-PC) [] 192.168.205.77:445 is running Windows 6.3 Build 9600 (name:EKATERINAMESSI) (domain:EKATERINAMESSI) 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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128) <Greenlet at 0xb49dcd4cL: connect('192.168.205.206')> failed with UnicodeEncodeError

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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-5: ordinal not in range(128) <Greenlet at 0xb49dc4dcL: connect('192.168.205.179')> failed with UnicodeEncodeError

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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128) <Greenlet at 0xb535834cL: connect('192.168.205.138')> failed with UnicodeEncodeError

[] 192.168.205.224:445 is running Windows 10.0 Build 10240 (name:TOSHIBA-PC) (domain:TOSHIBA-PC) [] 192.168.205.237:445 is running Windows 10.0 Build 10240 (name:TIMA-PC) (domain:TIMA-PC) [] 192.168.205.213:445 is running Windows 6.3 Build 9600 (name:ALPHA-PC) (domain:ALPHA-PC) [] 192.168.205.200:445 is running Windows 6.1 Build 7601 (name:GB-PK) (domain:GB-PK) [] 192.168.205.116:445 is running Windows 6.3 Build 9600 (name:ROXYLLCFOX) (domain:ROXYLLCFOX) [] 192.168.205.136:445 is running Windows 6.1 Build 7601 (name:ACER-PC) (domain:ACER-PC) [_] 192.168.205.219:445 is running Windows 6.1 Build 7601 (name:BEST) (domain:BEST) 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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128) <Greenlet at 0xb53587acL: connect('192.168.205.152')> failed with UnicodeEncodeError

[_] 192.168.205.98:445 is running Windows 6.3 Build 9600 (name:VAIO) (domain:VAIO) 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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128) <Greenlet at 0xb65b9e3cL: connect('192.168.205.80')> failed with UnicodeEncodeError

[_] 192.168.205.195:445 is running Windows 6.1 Build 7601 (name:MIHAIL) (domain:MIHAIL) 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 2857, in connect print_status("{}:{} is running {} (name:{}) (domain:{})".format(host, args.port, smb.getServerOS(), s_name, domain)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-6: ordinal not in range(128) <Greenlet at 0xb49eb57cL: connect('192.168.205.234')> failed with UnicodeEncodeError

^CKeyboardInterrupt [*] Got CTRL-C! Exiting.. root@backbox:/home/its_0x08/Desktop/exploits/CrackMapExec#

byt3bl33d3r commented 9 years ago

@its0x08 I'm going to need the hostname and domain name of the machine it's trying to connect to so I can reproduce this error

byt3bl33d3r commented 9 years ago

wut? I just need the hostname and domain of the machine the script is trying to connect to

byt3bl33d3r commented 9 years ago

Also you're not supposed to be running this Tool without permission. Closing.

byt3bl33d3r commented 9 years ago

@its0x08 I closed it since you're unable to provide me the information that I need to fix this.

byt3bl33d3r commented 9 years ago

I need the hostname and the domain name of the machine that the script throws the error on which isn't in the output's you posted