Table of Contents

Peda setup and usage

Setup

You can download peda using:

git clone https://github.com/longld/peda

To set it up add the following to your ~/.gdbinit file and then run gdb as usual:

.gdbinit
# Source all settings from the peda dir
source ~/peda/peda.py
 
# These are other settings I have found useful
 
# Intel syntax is more readable
set disassembly-flavor intel
 
# When inspecting large portions of code the scrollbar works better than 'less'
set pagination off
 
 
# Keep a history of all the commands typed. Search is possible using ctrl-r
set history save on
set history filename ~/.gdb_history
set history size 32768
set history expansion on

Making the following modification to ~/peda/lib/config.py is also recommended:

-    "debug"     : ("off", "show detail error of peda commands, e.g: on|off"),
+    "debug"     : ("on", "show detail error of peda commands, e.g: on|off"),

General usage and features

Exploit/ Reverse Engineering specifics

More info