Getting Started
Getting started with IDAPython
Intro
How this guide is structured?
Where can I find the complete examples library?
Basics
Common modules
Common variables and constants
Code snippets
Part 1: Navigating the disassembly—addresses and names
Get the current address:**
Set the current address
Get the minimum address in IDB
Get the maximum address in IDB
List all instruction addresses
Get the name associated with a given address
Get the address associated with a given name
Part 2: Reading and Writing Data
Reading Bytes and Words
Writing Bytes and Words
Part 3: Comments
Add a regular (non-repetable) or repeatable comment
Get a regular comment
Segments
Get a segment name
Get the first segment address:
Iterate through all segments and return segment names
Add segment
Part X: Functions
Create and delete function
Get the name of the function
Iterate through all functions and print their effective addresses and names
Part: Navigating cross-references (Xrefs)
List cross-references to an address
List cross-references from an address:**
Iterate through all cross-references to the specific address and print the address from where the reference originates.
Part X: UI
Set background color of a function
Display a custom dialog
Complex script examples
What's next?
Last updated
Was this helpful?
