Decompyle++
A Python Byte-code Disassembler/Decompiler
Decompyle++ aims to translate compiled Python byte-code back into valid and human-readable Python source code. While other projects have achieved this with varied success, Decompyle++ is unique in that it seeks to support byte-code from any version of Python.
Decompyle++ includes both a byte-code disassembler (pycdas) and a decompiler (pycdc).
As the name implies, Decompyle++ is written in C++. If you wish to contribute, please fork us on github at https://github.com/zrax/pycdc
I’ve tested it in Windows 7 32bit and Arch Linux i686, and works good. It supports from py10 to py34 (according to list of map files in /bytes folder, tried with pyc compiled by py34 but not cecompiled yet, maybe support for py34 should be updated in future)
How to make it run under Linux:
Grab files from git and build it:
git clone git://github.com/zrax/pycdc cd pycdc make
Compiled files are pycdas for Python Disassembler and pycdc for Python decompiler.
Usage:
pycdas [FILE_NAME]
to disassemble pyc/pyo file
or
pycdc [FILE_NAME]
to decompile pyc/pyo file
Enjoy and best regards,
Levis
how to use the same in Win64. i tried unsuccessfully. can you please help?
Thanks in advance
LikeLike
You’d better use this tool on Windows, it works perfectly: http://sourceforge.net/projects/easypythondecompiler/
LikeLike
Hi.
I came across your website while trying to figure out how to decompile a .pyc file. I tried running Decompyle++ on my Mac in terminal but could not get it to work.
If I send you the .pyc file could you decompile it and send me back the .py file?
Thanks,
Andrew
LikeLike
I have a .pyc file I am trying to decompile. I tried using Decompyle++ on my Mac in terminal but was not successful. If I sent you the .pyc file, would you be able to decompile it and sent me the .py file?
LikeLike
Hi! I had a lot of trouble trying to decompile .pyc file. Thanks to these instructions, finally I succeeded.
For those of you who do not have time, I put the Python Decompyle++ online here:
http://www.javadecompilers.com/pyc
Thank you again, Levis, and good luck!
Andrew CroCoder.
LikeLiked by 2 people
Wow, great job! Bookmarked!
Best Regards,
Levis
LikeLike