PyInstaller Extractor
- 下载pyinstxtractor
- 把pyinstxtractor.py和待解包应用放在同一目录下,在该目录运行下面的命令
bash
python pyinstxtractor.py {应用名}.exe例如:
bash
python pyinstxtractor.py flag.exe反编译
如果 pyc 文件版本 > Python 3.8 ,选择 pycdc
如果 pyc 文件版本 <= Python 3.8 ,选择 uncompyle6
pycdc
- 安装 pycdc
bash
pip install pycdc- 在该目录运行下面的命令
bash
pycdc {你需要反编译的文件名}.pyc >{反编译后的Python代码文件名}.py例如:
bash
pycdc flag.pyc >flag.pyuncompyle6
- 安装 uncompyle6
bash
pip install uncompyle6- 在该目录运行下面的命令
bash
uncompyle6 {你需要反编译的文件名}.pyc >{反编译后的Python代码文件名}.py例如:
bash
uncompyle6 flag.pyc >flag.py