This repo can be used to test PEDA, the Python Exploit Development Assistance for GDB plugin.
bin/
: compiled location for test programssrc/
: source for test programsinputs/
: list of gdb commands used in tests (passed with the-x
switch togdb
)compare_pedas.sh
: BASH script used to compare versions of PEDA/GDBrun_peda_test.sh
: BASH script used to run PEDA under a given GDBMakefile
: Makefile for building test programs. Runmake
to build.
# Build test programs
make
# Run test with specific GDB and PEDA
./run_peda_test.sh ./bin/bof inputs/bof01.gdb gdb ~/peda/peda.py
# Compare PEDA on different versions of GDB
./compare_pedas.sh ./bin/bof ./inputs/bof01.gdb \
/path/to/gdb1 ~/peda/peda.py \
/path/to/gdb2 ~/peda/peda.py
# Compare different versions of PEDA on the same GDB
./compare_pedas.sh ./bin/bof ./inputs/bof01.gdb \
gdb ~/peda-master/peda.py \
gdb ~/peda-test/peda.py
To add a test, add a *.c
file to the src/
directory.