python3 还原pyinstaller编译的可执行文件为py源文件

1、安装源文件所使用的python版本

2、安装pyinstxtractor.py文件,使用python pyinstxtractor.py ”二进制文件“,将编译后的文件解包成“二进制文件__extracted”文件夹

3、pip install uncompyle6 安装uncompyle6工具

4、在第二步“二进制文件__extracted”文件夹下有一个“二进制文件.pyc”文件,使用uncompyle6 “二进制文件.pyc” > ../二进制文件.py 

可还原成源文件。

posted @ 2022-05-27 11:44  小阿里  阅读(338)  评论(0)    收藏  举报