Git Product home page Git Product logo

gdb-python-utils's Introduction

This README file is a condensed version of the project wiki:
https://github.com/crossbowerbt/GDB-Python-Utils/wiki

== Project description ==

This project aims 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

== But, hey, GDB and python?!? ==

Yeah! Since version 7.0, GDB can be scripted in python.

Even if development is not finished yet, you can already do amazing things, as I will try to show you with the examples included in the library.

If you don't believe me, check these references:
* the project page: http://sourceware.org/gdb/wiki/PythonGdb 
* the excellent tutorials of Tom Tromey: http://tromey.com/blog/?cat=17 
* GDB python documentation: http://sourceware.org/gdb/onlinedocs/gdb/Python.html 

To install a Python-enabled GDB you can read the first tutorial of Tom Tromey: http://tromey.com/blog/?p=494. Maybe, in future, distributions will have a package for it...

== Documentation ==

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: lovers of copy/paste will quickly feel 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.

The "snippet" documentation is available at https://github.com/crossbowerbt/GDB-Python-Utils/wiki/Snippets/, in the project wiki.

gdb-python-utils's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.