nccgroup / Winpayloads

Undetectable Windows Payload Generation
Apache License 2.0
1.56k stars 332 forks source link

UnicodeEncodeError: 'latin-1' codec can't encode character u'\u25d0' in position 0: ordinal not in range(256) #69

Closed ronnieflip closed 5 years ago

ronnieflip commented 5 years ago

Winpayloads always breaks with this error. I've tried it on different systems like the lastest kali and ubuntu but still getting the same error.

Traceback (most recent call last):
  File "WinPayloads.py", line 44, in <module>
    getAndRunMainMenu()
  File "/root/dev/Winpayloads/lib/menu.py", line 67, in getAndRunMainMenu
    mainMenu.runmenu()
  File "/root/dev/Winpayloads/lib/menu.py", line 171, in runmenu
    result = extrawork(payloadchoice,payload)
  File "/root/dev/Winpayloads/lib/preparepayload.py", line 26, in reversePayloadGeneration
    shellcode = payloadchoice(ipaddr, portnum)
  File "/root/dev/Winpayloads/lib/main.py", line 161, in windows_met_rev_shell
    return msfvenomGeneration('windows/meterpreter/reverse_tcp', ip, port)
  File "/root/dev/Winpayloads/lib/main.py", line 78, in msfvenomGeneration
    LOADING.Update()
  File "/root/dev/Winpayloads/lib/main.py", line 311, in Update
    self.loading[0: (self.spin_2mod)]) + (" " * (self.spin_2 - self.spin_2mod)))
  File "/root/dev/Winpayloads/lib/main.py", line 304, in Looper
    sys.stdout.write(text)
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u25d0' in position 0: ordinal not in range(256)
Charliedean commented 5 years ago

I will look into this. but for now, you can use Winpayloads in docker