Uncompyle2 How to install and use Windows

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.