Skip to content

Instantly share code, notes, and snippets.

@jaybosamiya
Last active November 25, 2023 14:40
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jaybosamiya/951193ae774dfc127b513a93795a46c7 to your computer and use it in GitHub Desktop.
Save jaybosamiya/951193ae774dfc127b513a93795a46c7 to your computer and use it in GitHub Desktop.
How to get IDA Python to work with IDA Demo

How to get IDA Python to work with IDA Demo

Go to the IDAPython binaries page. Download the latest _linux.zip file and extract it. In my case, it was idapython-6.9.0-python2.7-linux.zip. Follow the instructions in its README.txt.

For simplicity, I have copy pasted the relevant portions here:

1. Install 2.6 or 2.7 from http://www.python.org/
2. Copy the whole "python" directory to %IDADIR%
3. Copy the contents of the "plugins" directory to the %IDADIR%\plugins\
4. Copy "python.cfg" to %IDADIR%\cfg

In order to do step 1 correctly on a 64-bit Ubuntu 14.04, I had to run sudo apt-get install libpython2.7:i386 and get all the libraries needed with their 32 bit versions. Rest of the steps are quite straight forward. BTW, %IDADIR% is the directory where you have IDA extracted/installed.

Now, whenever you open IDA, you will have access to IDA Python.

Note: Some of the functions like idaapi.init_hexrays_plugin() will obviously not work (since you don't have a decompiler in Demo), but most things should work otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment