mirror of
https://github.com/keystone-engine/keystone
synced 2026-06-08 15:15:30 +00:00
4f5401601b
* Add support for MSP430 * Fix test-all.sh * Use corrected TableGen output files * Fix bindings for EVM and MSP430 * Remove LLVM_CONSTEXPR (like upstream LLVM did) and fix Java binding See https://github.com/llvm-mirror/llvm/commit/6feedc56f7855aa24baf759f3bc17112ecbf5699#diff-d14f03e012a2bdbf93486dc1c4ce95ec * Revert bindings * Remove added files as well * Add back changes for bindings created by const_gnerator * Add back changes for other bindings * Update CREDITS.TXT * Fix ADRP instruction encoding * Trigger checks on PR again, it failed for some reason unrelated to my code * Add correct offset checks back in * added llvm support post jan 2 * Remove bounds check on ppc branch instructions target address (fix issue 423) * Fix vm address reset in aliased PPC instructions * Fix vm address reset in aliased PPC instructions (cherry picked from commit06425a32f3) * Remove bounds check on ppc branch instructions target address (fix issue 423) (cherry picked from commit06afb493e0) * Clean up test for issue #427 Co-authored-by: Trey Keown <trey@redballoonsecurity.com> Co-authored-by: Dan Pesce <dan@redballoonsecurity.com> Co-authored-by: Trey Keown <jfktrey@gmail.com> Co-authored-by: Nguyen Anh Quynh <aquynh@gmail.com>
To install Python binding from Pypi (binary), simply do:
pip install keystone-engine
In case you want to install from source code, follow the below steps.
-
Install the core engine as dependency
Follow README.md in the root directory to compile & install the core.
-
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
For example how to use Keystone API, see sample.py
- 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 Keystone download page and paste it in the path:
C:\location_to_python\Lib\site-packages\keystone\