同学请我帮他反编译下几个pyc文件,生成pyc文件的python版本是2.6.6
尝试了以下几个工具:
【1】uncompyle2
github:https://github.com/wibiti/uncompyle2
之前用过,但是有个限制是必须是python2.7以上生成的pyc
怀着试试的心理,还是按照说明使用了:
E:\kkxue文档\python\反编译\uncompyle2-master\scripts>python uncompyle2 log_error
.pyc
Error: uncompyle2 requires Python 2.7.
好了,下一个
【2】UnPyc
github:https://github.com/tswr/UnPyc
直接上执行后的结果:
C:\Users\Administrator\Desktop\zhou\UnPyc-disasm_0.18>python UnPyc -dv log_error
.pyc > result.txt打开result.txt,结果发现是汇编代码:
--== Disasm ==--
00000008 CODE:
argcount:
00000009 LONG: 0L (00 00 00 00)
nlocals:
0000000D LONG: 0L (00 00 00 00)
stacksize:
00000011 LONG: 5L (05 00 00 00)
flags:
00000

本文介绍了如何反编译Python 2.6版本的pyc文件,包括尝试使用uncompyle2、UnPyc、pyc2py等工具,以及最终找到的在线解决方案——depython.com,该网站支持Python 2.0到2.6的pyc文件反编译。
最低0.47元/天 解锁文章
9665

被折叠的 条评论
为什么被折叠?



