BSD Ports

security/peda 1.2 DragonFly

Python-based GDB extension for exploit development and debugging

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
CC-BY-NC-SA-3.0
Categories
python, security
Package size
55.0 KiB, 283.5 KiB installed

Description

PEDA (Python Exploit Development Assistance for GDB) is a plugin for GDB. It extends GDB with a colorful text-based UI making it easier to work with the debugger.

Note that PEDA requires that GDB is compiled with Python support.

Its key features are:

  • Enhance the display of GDB: colorize and display disassembly codes, registers, memory information during debugging.
  • Add commands to support debugging and exploit development.

In the other systems

SystemPortVersion
DragonFlysecurity/peda1.2
FreeBSDsecurity/peda1.2

Install

Binary package:

pkg install peda

From DPorts:

cd /usr/dports/security/peda && make install clean

Dependencies

Run dependencies 5

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Now that PEDA is installed it can be used with gdb(1).

Run the following command in the gdb prompt to load the plugin:

```
source /usr/local/libexec/peda/peda.py
```

In order to load PEDA automatically on gdb(1) launch add the line mentioned
above to ~/.gdbinit:

```
echo "source /usr/local/libexec/peda/peda.py" >> ~/.gdbinit
```

Keep in mind that PEDA requires at least GDB 7.0 to work.