
Python 逆向

PyInstaller Extractor
- 下载pyinstxtractor
- 把pyinstxtractor.py和待解包应用==放在同一目录下==,在该目录运行下面的命令
1 | python pyinstxtractor.py {应用名}.exe |
例如:
1 | python pyinstxtractor.py flag.exe |
反编译
如果 ==pyc 文件版本 > Python 3.8== ,选择 ==pycdc==
如果 ==pyc 文件版本 <= Python 3.8== ,选择 ==uncompyle6==
pycdc
- 安装 pycdc
1 | pip install pycdc |
- 在该目录运行下面的命令
1 | pycdc {你需要反编译的文件名}.pyc >{反编译后的Python代码文件名}.py |
例如:
1 | pycdc flag.pyc >flag.py |
uncompyle6
- 安装 uncompyle6
1 | pip install uncompyle6 |
- 在该目录运行下面的命令
1 | uncompyle6 {你需要反编译的文件名}.pyc >{反编译后的Python代码文件名}.py |
例如:
1 | uncompyle6 flag.pyc >flag.py |
- 标题: Python 逆向
- 作者: Aristore
- 创建于 : 2024-12-17 19:00:00
- 更新于 : 2025-03-11 20:38:26
- 链接: https://www.aristore.top/posts/PythonReverse/
- 版权声明: 版权所有 © Aristore,禁止转载。
评论