Uncompyle2 is a Python 2.7 anti-compilation tool, it can be Python generated pyo, PYc bytecode files to the very perfect source code, and can be the anti-compiled source code again to generate bytecode files!
-----
This article describes a way to install Uncompyle2 on Windows,
GitHub Project: Https://github.com/wibiti/uncompyle2
1, installation Uncompyle2
You need to have python2.7 installed before installing on Windows (must be 2.7)
In the cmd input
git clone https://github.com/wibiti/uncompyle2Install
(If you do not have Git installed, you can directly access the project address, click on the inside of the download zip download and then unzip it)
After installation, the Python input import uncompyle2 will not be an error is installed successfully.
Like the previously introduced Binwalk, Uncompyle2 can be run directly after installing Linux, but not on Windows, which has a uncompyle2 no suffix file under the Scripts folder in the Python installation directory.
2. Write a bat batch file
Create a new folder and add the path of the folder to the system variable path (which can be run directly in cmd). )
Create a new uncompyle2.bat file in the folder (in fact, whatever you like, you can name it)
:: Author:pcat:: http://pcat.cnblogs.com@echo offifdefined python_home (Python"%python_home%\scripts\uncompyle2"%1%2%3%4%5%6%7%8%9)Else ( Echo "You need to set Python_home")
As long as the path to this folder exists in the system variable path and the bat file, then you can use Uncompyle2 in cmd like Linux.
3, the use of Uncompyle2
Use Help:
Uncompyle2-h
If you look at the help, you will find that the operation is a bit cumbersome, that is-o outfile must first write,
For example there is a pcat.pyc that wants to decompile the output file as pcat.py, which you must write:
Uncompyle2-o pcat.py PCAT.PYC
Uncompyle2 How to install and use Windows