2016-08-15 07:29:38 +00:00
|
|
|
This documentation explains how to install the python binding for Unicorn
|
2015-10-15 15:51:31 +00:00
|
|
|
from source.
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
1. Installing on Linux:
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
$ sudo python setup.py install
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
This will build the core C library, package it with the python bindings,
|
|
|
|
and install it to your system.
|
2015-08-21 07:04:50 +00:00
|
|
|
|
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
2. Installing on Windows:
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
Run the following command in command prompt:
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
C:\> C:\location_to_python\python.exe setup.py install
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
Next, copy all the DLL files from the 'Core engine for Windows' package available
|
|
|
|
on the Unicorn download page and paste it in the path:
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
C:\location_to_python\Lib\site-packages\unicorn\
|
2015-08-21 07:04:50 +00:00
|
|
|
|
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
3. Sample code
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
This directory contains some sample code to show how to use Unicorn API.
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
- sample_<arch>.py
|
|
|
|
These code show how to access architecture-specific information for each
|
|
|
|
architecture.
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
- shellcode.py
|
|
|
|
This shows how to analyze a Linux shellcode.
|
2015-08-21 07:04:50 +00:00
|
|
|
|
2016-08-15 07:29:38 +00:00
|
|
|
- sample_network_auditing.py
|
|
|
|
This shows how to analyze & interpret Linux shellcode.
|