Open henshin opened 4 years ago
Using Python3 causes an UTF-8 encoding error when generating the payload while Python2 works fine. Example:
root@kali:~/tools/SharpShooter# python3 ./SharpShooter.py --stageless --payload hta --rawscfile ./msf_shellcode.bin --dotnetver 4 --output poc _____ __ _____ __ __ / ___// /_ ____ __________ / ___// /_ ____ ____ / /____ _____ \__ \/ __ \/ __ `/ ___/ __ \__ \/ __ \/ __ \/ __ \/ __/ _ \/ ___/ ___/ / / / / /_/ / / / /_/ /__/ / / / / /_/ / /_/ / /_/ __/ / /____/_/ /_/\__,_/_/ / .___/____/_/ /_/\____/\____/\__/\___/_/ /_/ Dominic Chell, @domchell, MDSec ActiveBreach, v2.0 'utf-8' codec can't decode byte 0xda in position 0: invalid continuation byte [!] Incorrect choice root@kali:~/tools/SharpShooter# root@kali:~/tools/SharpShooter# python2 ./SharpShooter.py --stageless --payload hta --rawscfile ./msf_shellcode.bin --dotnetver 4 --output poc _____ __ _____ __ __ / ___// /_ ____ __________ / ___// /_ ____ ____ / /____ _____ \__ \/ __ \/ __ `/ ___/ __ \__ \/ __ \/ __ \/ __ \/ __/ _ \/ ___/ ___/ / / / / /_/ / / / /_/ /__/ / / / / /_/ / /_/ / /_/ __/ / /____/_/ /_/\__,_/_/ / .___/____/_/ /_/\____/\____/\__/\___/_/ /_/ Dominic Chell, @domchell, MDSec ActiveBreach, v2.0 [*] Written delivery payload to output/poc.hta root@kali:~/tools/SharpShooter#
I've also come across, and I've just solved it, the recommendation is to use python2
I still get encoding errors with Python 2 unfortunately.
For anyone having this problem, just use jsmin==2.2.2
Using Python3 causes an UTF-8 encoding error when generating the payload while Python2 works fine. Example: