BSD Ports

security/gef 2026.01 FreeBSD

GDB Enhanced Features for exploit devs & reversers

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d698ede917
License
MIT
Categories
security, python
Package size
86.9 KiB, 424.7 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
FreeBSDsecurity/gef2026.01
NetBSDwip/gef2021.10
DragonFlysecurity/gef2022.01_1
HardenedBSDsecurity/gef2026.01
GhostBSDsecurity/gef2026.01

Install

Binary package:

pkg install gef

From the ports tree:

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

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

RUN_DEPENDS=	gef>0:security/gef

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:latest2026.012026.01--2026.01
FreeBSD:14:quarterly2026.012026.01n/a-2026.01
FreeBSD:15:latest2026.012026.01n/a--
FreeBSD:15:quarterly2026.012026.01n/an/an/a
FreeBSD:16:latest2026.012026.01n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

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

Run dependencies 24

No port depends on this one.

Configuration

Options name: security_gef

OptionDefaultDescription
OPTIONALDEPSonInstall optional dependencies for extra functionalities
USES
python:run
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
```

Files

distinfo 1
FileSizeSHA256
hugsy-gef-2026.01_GH0.tar.gz2474196e58afbda13ef976aa46a2f138b5422829a0d3c4b71246f4546cbd7383ce2e76

Commit history 1

DateCommitCreditsLog message
d698ede917 Mateusz Piotrowski security/gef: Update to 2026.01
Sponsored by: fme AG