bytecode_simplifier icon indicating copy to clipboard operation
bytecode_simplifier copied to clipboard

Decompilers fails on complex files

Open Mixaill opened this issue 8 years ago • 7 comments

Decompilers still fail to decompile .pyc even after bytecode_simplifier if original file was huge and complex.

Tested decompilers: uncompyle2, uncompyle6, pycdc.

test.zip

Mixaill avatar Jul 15 '17 12:07 Mixaill

@Mixaill, есть хоть какой-то смысл заменить marshal на xdis в этом проекте? Ну и скопировать сюда opcode.py из Python2.7.7 ?

ghost avatar Jul 15 '17 19:07 ghost

@Mixaill The script is protected using "Exec only in WOT" mode. This means BigWorld, BattleReplay etc modules from WOT must be present in PYTHONPATH.

Else the script would fail to import the module and consequently not all layers would be unwrapped. Unwrapping all the layers is very important. Bytecode simplifier works on the final layer.

At the moment, I am working on providing a fake BigWorld module to bypass this check.

extremecoders-re avatar Jul 19 '17 07:07 extremecoders-re

Maybe you could explain the method to put WOT modules in the PYTHONPATH to make your tool working as intended, do we need to decompress the pkg file that contains python files, etc ... And keep up the good work ;)

homyzere avatar Aug 11 '17 14:08 homyzere

@extremecoders-re any luck on fake BigWorld?

Stabmeqt avatar Jan 30 '18 15:01 Stabmeqt

@Stabmeqt I am afraid there hasn't been any progress on this.

extremecoders-re avatar Jan 31 '18 05:01 extremecoders-re

@extremecoders-re That's unfortunate. Anyway, thank you for all the good work. Hope to see how you defeated WOT mode protection one day :)

Stabmeqt avatar Jan 31 '18 06:01 Stabmeqt

maybe this tool can solve: https://www.irdevelopers.com/post/12076/PjOrion-1.3.0-with-P2.7.html

fawdlstty avatar Apr 17 '19 03:04 fawdlstty