所需工具
1、pyinstxtractor.py
下载地址:https://sourceforge.net/projects/pyinstallerextractor/
2、010Editor
下载地址:https://www.sweetscape.com/010editor/
步骤
将pyinstxtractor.py与exe放置在一个文件夹内,打开cmd,输入下列指令生成一个文件夹
python pyinstxtractor.py xxx.exe
使用010Editor打开文件夹中的main和struct,将struct中E3前面的字节复制粘贴到010Editor的E3前
修改main文件后缀为main.pyc
使用在线工具https://tool.lu/pyc/ 将main.pyc反编译为py文件