来源:http://ctf.idf.cn/index.php?g=game&m=article&a=index&id=45
python ByteCode
请看这里: http://pan.baidu.com/s/1jGpB8DS
下载后是一个名为 crackme.pyc文件
python逆向基础资源:
- 用 Python 反编译 Python 软件:http://bbs.pediy.com/archive/index.php?t-111428.html
- 工具uncompyle2:https://github.com/wibiti/uncompyle2
本题分析:
1.话说用python中的dis模块可以自己编个反编译程序,但是我目前不会,就不罗嗦了。下载uncompyle2后,可以在终端进入uncompyle2目录下,找到setup.py,就可运行下列命令执行安装:
python setup.py install
如果要反编译*.pyc程序,可以运行下列命令:
python C:\Python27\Scripts\uncompyle2 crackme.pyc > crackme.py
其他用法
Examples:
uncompyle2 foo.pyc bar.pyc