Press "Enter" to skip to content

[HITCON] Handcrafted pyc – 50pts


Can your brain be a Python VM? (Please use Python 2.7)





Firstly, we have converted it to pyc files.

We try to decompile it by using uncomple2 , but we found that it missed 8 bytes of pyc header.


After we fixed the file, it is able to decompile and we got a part of data


Here is the comparison part, so we can trace the flag here


Finally we got

Convert all of the ascii code to string to get the flag.

hitcon{Now you can compile and run python bytecode in your brain!}