如何反编译py2exe编译的exe文件? [英] How to decompile an exe file compiled by py2exe?

查看:91
本文介绍了如何反编译py2exe编译的exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何反编译py2exe编译的exe文件?

How to decompile an exe file compiled by py2exe?

只有一个 exe 文件,没有任何 zip 文件.

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

如何反编译为pyc或pyo文件?

how to decompile to pyc or pyo file?

推荐答案

可以使用 unpy2exe 来解压.pyc 然后使用 pyREtic 获取源代码.我猜你可以阅读HOWTO并了解如何使用这些程序,但基本上你去unpy2exe.py的位置并运行:

You can use unpy2exe to extract the .pyc and then use pyREtic to get the source code. I guess you can read the HOWTO and understand how to use these programs, but basically you go to the location of unpy2exe.py and run:

unpy2exe.py [-h] [-o OUTPUT_DIR] [-p PYTHON_VERSION] 文件名

unpy2exe.py [-h] [-o OUTPUT_DIR] [-p PYTHON_VERSION] filename

然后到 REpdb.py 所在的位置运行:

thene go to the location of REpdb.py and run:

REpdb.py

set_project [新项目名称]

set_project [new project name]

选择python版本

fs_um_decompile [pyc 文件的位置]

fs_um_decompile [location of pyc file]

源代码应该在 ...\Projects[新项目名称]\sourcecode\fs_um\

The source should be in ...\Projects[new project name]\sourcecode\fs_um\

这篇关于如何反编译py2exe编译的exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆