python反编译
2020-12-12安装
提取
安装
反编译
2020-12-12
安装pyinstaller
python3 -m pip install pyinstaller |
提取pyc文件
- 查看二进制文件集成的文件
pyi-archive_viewer test |
- 提取(
pyi-archive_viewer的命令)
x test |
- 补全字节, 参考
- 先将
struct.pyc也提取出来 - 查看待
test.pyc和struct.pyc(十六进制), 将struct.pyc的前16字节加入test.pyc(具体操作需要根据二进制文件内容进行)
- 先将
安装uncompyle6
python3 -m pip install uncompyle6 |
反编译pyc
uncompyle6 test.pyc > test.py |
查看导入的模块
o PYZ-00.pyz |