unicorn/bindings/python
Jurriaan Bremer 76786850c4 code cleanup of python bindings
Addresses a couple of pep8 related changes improving the code quality.
2016-03-29 16:20:40 +02:00
..
unicorn code cleanup of python bindings 2016-03-29 16:20:40 +02:00
Makefile
MANIFEST.in
README.TXT
sample_all.sh
sample_arm.py
sample_arm64.py
sample_m68k.py
sample_mips.py
sample_network_auditing.py - Switch to 'in' which works in 2/3 instead of legacy '.has_key()' 2016-01-31 17:01:14 -04:00
sample_sparc.py uc_mode fixes for bindings 2016-01-25 17:42:51 +11:00
sample_x86.py uc_hook_add(): add begin & end arguments for all hook types. also update Python binding after this change 2016-02-11 08:02:13 +08:00
setup.py python: 0.9 -> 1.0 in setup.py 2016-03-06 17:28:32 +08:00
shellcode.py uc_hook_add(): add begin & end arguments for all hook types. also update Python binding after this change 2016-02-11 08:02:13 +08:00

This documentation explains how to install Python binding for Unicorn
from source.


0. Install the core engine as dependency

   Follow README in the root directory to compile & install the core.

   On *nix, this can simply be done by (project root directory):

        $ sudo ./make.sh install


1. To install pure Python binding on *nix, run the command below in the Python bindings directory:

		$ sudo make install

  To install Python3 binding package, run the command below:
  (Note: this requires python3 installed in your machine)

		$ sudo make install3



This directory contains some sample code to show how to use Unicorn API.

- sample_<arch>.py
  These code show how to access architecture-specific information for each
  architecture.

- shellcode.py
  This shows how to analyze a Linux shellcode.

- sample_network_auditing.py
  This shows how to analyze & interpret Linux shellcode.


2. To install Python binding on Windows:

	Run the following command in command prompt:

		C:\> C:\location_to_python\python.exe setup.py install

	Next, copy all the DLL files from the 'Core engine for Windows' package available
	on the same Unicorn download page and paste it in the path:

		C:\location_to_python\Lib\site-packages\unicorn\