BSD Ports

security/peda 1.2 FreeBSD

Python-based GDB extension for exploit development and debugging

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
CC-BY-NC-SA-3.0
Categories
security, python
Package size
56.7 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
FreeBSDsecurity/peda1.2
DragonFlysecurity/peda1.2

Install

Binary package:

pkg install peda

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	peda>0:security/peda

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.21.21.21.21.2
FreeBSD:14:quarterly1.21.2n/a1.21.2
FreeBSD:15:latest1.21.2n/a1.2-
FreeBSD:15:quarterly1.21.2n/an/an/a
FreeBSD:16:latest1.21.2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 4

The full lists below include those, and their dependencies in turn.

Run dependencies 37

No port depends on this one.

Configuration

Options name: security_peda

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
python:run
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.

Files

pkg-plist 10
  • libexec/peda/lib/config.py
  • libexec/peda/lib/nasm.py
  • libexec/peda/lib/shellcode.py
  • libexec/peda/lib/six.py
  • libexec/peda/lib/skeleton.py
  • libexec/peda/lib/utils.py
  • libexec/peda/peda.py
  • share/doc/peda/README
  • share/doc/peda/README.md
  • share/doc/peda/python23-compatibility.md
distinfo 1
FileSizeSHA256
longld-peda-v1.2_GH0.tar.gz6533105ac5040c0585324a919815d315f57ea0bb211318b629192bfe31b63b91ae12f

Commit history 0

No commits in the history this site was built from.