mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-24 10:09:20 +01:00
ac5d88a83b
- IDA 6.0 support - Python CLI now prints expression evaluation result (no need to use print()) - Changed Alt-8 to Ctrl-F3 (because it conflicts with window switching key Alt+n) - Added get_highlighted_identifier() - Added PluginForm class to allow UI development with either PyQt4 or PySide - Added idautils.Entries() to enumerate entrypoints - idc / AddConst() was broken - Minor fixes
91 lines
2.3 KiB
Plaintext
91 lines
2.3 KiB
Plaintext
----------------------------------------------------------
|
|
IDAPython - Python plugin for Interactive Disassembler Pro
|
|
----------------------------------------------------------
|
|
|
|
WHAT IS IDAPTYHON?
|
|
------------------
|
|
|
|
IDAPython is an IDA plugin which makes it possible to write scripts
|
|
for IDA in the Python programming language. IDAPython provides full
|
|
access to both the IDA API and any installed Python module.
|
|
|
|
Check the scripts in the examples directory to get an quick glimpse.
|
|
|
|
|
|
AVAILABILITY
|
|
------------
|
|
|
|
Latest stable versions of IDAPython are available from
|
|
http://code.google.com/p/idapython/downloads/list
|
|
|
|
Development builds are available from
|
|
http://code.google.com/p/idapython/
|
|
|
|
|
|
RESOURCES
|
|
---------
|
|
|
|
The full function cross-reference is readable online at
|
|
http://www.hex-rays.com/idapro/idapython_docs/
|
|
|
|
Bugs and enhancement requests should be submitted to
|
|
http://code.google.com/p/idapython/issues/list
|
|
|
|
Mailing list for the project is hosted by Google Groups at
|
|
http://groups.google.com/group/idapython
|
|
|
|
|
|
INSTALLATION FROM BINARIES
|
|
--------------------------
|
|
|
|
1. Install Python 2.5 or 2.6 from http://www.python.org/
|
|
2. Copy the python and python64 directories to the IDA install directory
|
|
3. Copy the plugins to the %IDADIR%\plugins\
|
|
|
|
|
|
USAGE
|
|
-----
|
|
|
|
- Run script: File / Script file (Alt-F7)
|
|
- Execute Python statement(s) (Ctrl-F3)
|
|
- Run previously executed script again: View / Recent Scripts (Alt+F9)
|
|
|
|
Batch mode execution:
|
|
|
|
Start IDA with the following command line options:
|
|
|
|
-A -OIDAPython:yourscript.py file_to_work_on
|
|
or
|
|
-Syourscript.py
|
|
or
|
|
-S"yourscript.py arg1 arg2 arg3"
|
|
|
|
(Please see http://www.hexblog.com/?p=128)
|
|
|
|
If you want fully unattended execution mode, make sure your script
|
|
exits with a qexit() call.
|
|
|
|
By default scripts run after the database is opened. Extended option
|
|
format is:
|
|
|
|
-OIDAPython:[N;]script.py
|
|
|
|
Where N can be:
|
|
0: run script after opening database (default)
|
|
1: run script when UI is ready
|
|
2: run script immediately on plugin load (shortly after IDA starts and before processor modules and loaders)
|
|
|
|
User init file:
|
|
|
|
You can place your custom settings to a file called 'idapythonrc.py'
|
|
that should be placed to
|
|
|
|
${HOME}/.idapro/
|
|
|
|
or
|
|
|
|
%AppData%\Hex-Rays\IDA Pro
|
|
|
|
The user init file is read and executed at the end of the init process.
|
|
|