Skip to content
crossbowerbt edited this page Oct 9, 2011 · 29 revisions

Welcome to the GDB Python Utils wiki!

This project to create and maintain an utility library to provide useful functions to the standard GDB Python library, that is still under construction, and, for this reason, lacks very important features...

The library is simple to use (just copy the standalone gdb_utils.py file in your project), but helps the creation of powerful python scripts that can exploit most of the GDB features.

Some features already implemented:

  • Execute a GDB command and obtain its output
  • Search functions and processes with or without regular expressions
  • Disassemble memory regions and obtain a structured output
  • Assemble x86/x64 instructions and obtain the resulting payload

Since it's difficult to get in the mind of the developer, this project adopts the rule "a function - an example". This means that for every function or class exposed by the library, there will be a nice snippet of code that explains how to use it. So lovers of copy/paste will be quickly at ease, although we recommend to understand what a piece of code does before using it...

The formal documentation is created with Doxygen and available under html or latex directory in html or pdf formats.

Clone this wiki locally