BSD Ports

security/gef 2022.01_1 DragonFly

GDB Enhanced Features for exploit devs & reversers

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
python, security
Package size
82.3 KiB, 409.5 KiB installed

Description

GEF (pronounced "Jeff") is a set of commands for x86/64, ARM, MIPS, PowerPC and SPARC to assist exploit developers and reverse-engineers when using old school GDB. It provides additional features to GDB using the Python API to assist during the process of dynamic analysis and exploit development. Application developers will also benefit from it, as GEF lifts a great part of regular GDB obscurity, avoiding repeating traditional commands, or bringing out the relevant information from the debugging runtime.

Some of GEF features include:

  • One single GDB script.
  • Fast limiting the number of dependencies and optimizing code to make the commands as fast as possible.
  • Provides more than 50 commands to drastically change your experience in GDB.
  • Easily extendable to create other commands by providing more comprehensible layout to GDB Python API.
  • Built around an architecture abstraction layer, so all commands work in any GDB-supported architecture such as x86-32/64, ARMv5/6/7, AARCH64, SPARC, MIPS, PowerPC, etc.
  • Suited for real-life apps debugging, exploit development, just as much as CTF.

In the other systems

SystemPortVersion
DragonFlysecurity/gef2022.01_1
FreeBSDsecurity/gef2026.01

Install

Binary package:

pkg install gef

From DPorts:

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

Dependencies

Run dependencies 6

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

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

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

```
source /usr/local/share/gef/gef.py
```

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

```
echo "source /usr/local/share/gef/gef.py" >> ~/.gdbinit
```