How to decompile an exe file compiled by py2exe?

后端 未结 4 1120
广开言路
广开言路 2020-12-04 18:32

How to decompile an exe file compiled by py2exe?

just one exe file, didn\'n have any zip file.

how to decompile to pyc or pyo file?

4条回答
  •  半阙折子戏
    2020-12-04 18:55

    Use script provided here. It requires the original py2exe Python module to be installed. Also you must ensure that you use the same Python version originaly used to produce the executable. Otherwise the script will produce invalid magic number for the .pyc. Later you can use uncompyle2 to restore the original .py source.

提交回复
热议问题