Vulkan icon indicating copy to clipboard operation
Vulkan copied to clipboard

Invalid byte sequence in UTF-8 (ArgumentError)

Open p3tr0v opened this issue 1 year ago • 4 comments

When I run main.rb I get the error (with extreme or not)

main.rb:453:in scan': invalid byte sequence in UTF-8 (ArgumentError)`

image

OS: Windows 10 Ruby: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt]

Thanks!

p3tr0v avatar Nov 24 '23 02:11 p3tr0v

As I say on the README the tool isn't perfect and it may not work when obfuscating large scripts or some code the tools doesn't expect. That's why it comes with some scripts which don't break the tool like the Nishang reverse shell

D3Ext avatar Nov 25 '23 09:11 D3Ext

As I say on the README the tool isn't perfect and it may not work when obfuscating large scripts or some code the tools doesn't expect. That's why it comes with some scripts which don't break the tool like the Nishang reverse shell

D3Ext avatar Nov 25 '23 09:11 D3Ext

Anyway feel free to edit the script so it doesn't break

D3Ext avatar Nov 25 '23 09:11 D3Ext

If I'm not mistaken windows uses UTF-8 encoding by default which is what is causing the issue. I created a branch to force encoding here . If you could run the script on the Windows machine and let me know if the changes solved the issue.

gardnerapp avatar Aug 04 '24 12:08 gardnerapp

This has also been fixed with the new commit (i believe). I just have tested it on Linux

D3Ext avatar Aug 27 '24 07:08 D3Ext