Changing Python Opcodes

greg greg at cosc.canterbury.ac.nz
Wed Aug 19 08:07:13 CEST 2009


Sreejith K wrote:

> I know this is not the best way to do it. But I have to do it at least
> to make it *hard* to decompile the python bytecode.
> So I compiled Python from source changing some opcode values

It probably wouldn't be all that hard for someone to
figure this out. A possible avenue of attack would be
to use your python to compile a known piece of code
that exercises all the opcodes, and compare the result
with that from a standard python.

-- 
Greg



More information about the Python-list mailing list