Skip to content Skip to sidebar Skip to footer

Self Decompressing And Executing Code In Python

This is the code that creates a compressed file with arbitrary python code in it. The idea is that you paste some kind of python program in the raw_code variable assignment, then r

Solution 1:

Try putting # -*- coding: utf-8 -*- on the first line of your script.

You may be able to force your encoding to get your string to load correctly but mileage may vary. If you have null bytes or something in the string they're obviously not going to be stored correctly.


Post a Comment for "Self Decompressing And Executing Code In Python"