byt3bl33d3r / CrackMapExec

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

UnicodeEncodeError #100

Closed its0x08 closed 7 years ago

its0x08 commented 8 years ago
 ⚡ root@backbox  /home/its_0x08/Desktop/exploits/CrackMapExec   master  cd setup 
 ⚡ root@backbox  /home/its_0x08/Desktop/exploits/CrackMapExec/setup   master  l
total 32K
drwxr-xr-x 2 root root 4,0K Pri 16 20:37 .
drwxr-xr-x 8 root root 4,0K Pri 16 20:37 ..
-rwxr-xr-x 1 root root  170 Mar 28 09:51 gen-self-signed-cert.sh
-rwxr-xr-x 1 root root  840 Pri 16 20:37 setup_database.py
 ⚡ root@backbox  /home/its_0x08/Desktop/exploits/CrackMapExec/setup   master  bash gen-self-signed-cert.sh 
Generating a 2048 bit RSA private key
.................................................................+++
.....+++
writing new private key to '../data/cme.pem'
-----

 [*] Certificate written to ../data/cme.pem

 ⚡ root@backbox  ~its_0x08/Desktop/exploits/CrackMapExec/setup   master ●  python setup_database.py 
[*] Database setup completed!
 ⚡ root@backbox  ~its_0x08/Desktop/exploits/CrackMapExec/setup   master ●  cd ..
 ⚡ root@backbox  ~its_0x08/Desktop/exploits/CrackMapExec   master ●  python crackmapexec.py -t 100 192.168.207.0-255
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 534, in run
    result = self._run(*self.args, **self.kwargs)
  File "/home/its_0x08/Desktop/exploits/CrackMapExec/core/connector.py", line 53, in connector
    logger.info(u"{} (name:{}) (domain:{})".format(serveros, servername.decode('utf-8'), domain.decode('utf-8')))
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
<Greenlet at 0xb6592a7cL: connector('192.168.207.55', Namespace(command=None, cred_id=None, depth=10, do, <core.database.CMEDatabase instance at 0xb657b44c>, None, None, None)> failed with UnicodeEncodeError

04-17-2016 00:42:33 CME          192.168.207.99:445 USER-PC         [*] Windows 6.1 Build 7601 (name:USER-PC) (domain:USER-PC)
04-17-2016 00:42:33 CME          192.168.207.8:445 HP-PC           [*] Windows 6.2 Build 9200 (name:HP-PC) (domain:HP-PC)
04-17-2016 00:42:33 CME          192.168.207.44:445 WIN-6DS2ST85QF2 [*] Windows 6.3 Build 9600 (name:WIN-6DS2ST85QF2) (domain:WIN-6DS2ST85QF2)
04-17-2016 00:42:33 CME          192.168.207.9:445 DESKTOP-H8M1IRA [*] Windows 10.0 Build 10586 (name:DESKTOP-H8M1IRA) (domain:DESKTOP-H8M1IRA)
04-17-2016 00:42:34 CME          192.168.207.33:445 SABINA-PC       [*] Windows 6.1 Build 7601 (name:SABINA-PC) (domain:SABINA-PC)
04-17-2016 00:42:34 CME          192.168.207.63:445 DELL            [*] Windows 10.0 Build 10240 (name:DELL) (domain:DELL)
04-17-2016 00:42:41 CME          192.168.207.122:445 TIMA-PC         [*] Windows 10.0 Build 10586 (name:TIMA-PC) (domain:TIMA-PC)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 534, in run
    result = self._run(*self.args, **self.kwargs)
  File "/home/its_0x08/Desktop/exploits/CrackMapExec/core/connector.py", line 53, in connector
    logger.info(u"{} (name:{}) (domain:{})".format(serveros, servername.decode('utf-8'), domain.decode('utf-8')))
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
<Greenlet at 0xb4892e3cL: connector('192.168.207.248', Namespace(command=None, cred_id=None, depth=10, do, <core.database.CMEDatabase instance at 0xb657b44c>, None, None, None)> failed with UnicodeEncodeError

04-17-2016 00:42:45 CME          192.168.207.250:445 JORGE           [*] Windows 6.1 Build 7600 (name:JORGE) (domain:JORGE)
04-17-2016 00:42:49 CME          192.168.207.246:445 DESKTOP-AUVI262 [*] Windows 10.0 Build 10240 (name:DESKTOP-AUVI262) (domain:DESKTOP-AUVI262)
04-17-2016 00:42:49 CME          192.168.207.38:445 VELOSO          [*] Windows 6.3 Build 9600 (name:VELOSO) (domain:VELOSO)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 534, in run
    result = self._run(*self.args, **self.kwargs)
  File "/home/its_0x08/Desktop/exploits/CrackMapExec/core/connector.py", line 53, in connector
    logger.info(u"{} (name:{}) (domain:{})".format(serveros, servername.decode('utf-8'), domain.decode('utf-8')))
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)
<Greenlet at 0xb642a7acL: connector('192.168.207.95', Namespace(command=None, cred_id=None, depth=10, do, <core.database.CMEDatabase instance at 0xb657b44c>, None, None, None)> failed with UnicodeEncodeError

^CKeyboardInterrupt
04-17-2016 00:42:55 [*] KTHXBYE!
 ⚡ root@backbox  ~its_0x08/Desktop/exploits/CrackMapExec   master ●  
its0x08 commented 7 years ago

when are u goona fix Unicode problem here !! -_-