The Beginner's Guide to IDAPython
The Beginner's Guide to IDAPython
Free!
Minimum price
$14.99
Suggested price
The Beginner's Guide to IDAPython

Last updated on 2019-01-01

About the Book

Hello!

This is a book about IDAPython.

I originally wrote it as a reference for myself - I wanted a place to go to where I could find examples of functions that I commonly use (and forget) in IDAPython. Since I started this bookI have used it many times as a quick reference to understand syntax or see an example of some code - if you follow my blog you may notice a few familiar faces – lots of scripts that I cover here are result of sophomoric experiments that I documented online.

Over the years I have received numerous emails asking what is the best guide for learning IDAPython. Usually I will point them to to Ero Carrera's Introduction to IDAPython or the example scripts in the IDAPython's public repo. They are excellent sources for learning but they don't cover some common issues that I have come across. I wanted to create a book that covers these issues.I feel this book will be of value for anyone learning IDAPython or wanting a quick reference for examples and snippets. Being an e-book it will not be a static document and I plan on updating it in the future on regular basis.

The above snippet is from the Introduction of the The Beginner's Guide to IDAPython. I wrote this book in my spare time. It has been rewritten to cover changes made with the release of IDA 7. The price of the ebook is free (move the slider to left) but has a suggested price of $14.99.

Updates

Version 1.0

  • Published

Version 2.0

  • Table of Contents and closing added

Version 3.0

  • Grammar fixes provided by Russell V. and added an example of renaming operands.

Version 4.0

  • Support for IDAPython 7.0

Version 4.1

  • Bug fixes provided by Minh-Triet Pham Tran @MinhTrietPT

Version 5.0 

  • Converted format from Markdown to Microsoft Word.
  • Yara chapter added
  • Coloring chapter added
  • Structure chapter added
  • Enumerated Types chapter added
  • What’s next chapter added
  • Fixed bug found by @qmemcpy
  • Added MakeFunction as requested by Minh-Triet Pham Tran

About the Author

Alexander Hanel
Alexander Hanel

I work as a reverse engineer and malware analyst. I enjoy coding, reverse engineering, data analysis and a bunch of outdoor activities. I live in Boulder, Colorado. For more information about my work you can check out my blog or my code repository.

Table of Contents

Introduction  pg. 2

Updates  pg. 2

Intended Audience & Disclaimer   pg. 3

Conventions   pg. 3

IDAPython Background  pg. 4

Old vs New   pg.4

Python-x86_64   pg.5

Basics   pg.5

Segments   pg.7

Functions   pg.8

Instructions   pg.13

Operands   pg.16

Structures   pg.19

Enumerated Types  pg. 23

Xrefs   pg.25

Searching   pg.30

Selecting Data   pg.36

Comments & Renaming  pg. 37

Coloring  pg. 44

Accessing Raw Data  pg. 45

Patching  pg. 47

Input and Output  pg. 48

Intel Pin Logger  pg. 51

Batch File Generation  pg. 54

Executing Scripts  pg. 55

Yara  pg.56

What’s Next? pg. 60

Closing  pg. 61

Appendix  pg. 62

PeFile  pg. 62


The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub