leonjza / gdb-docker

A Dockerfile with GDB & GEF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gdb-docker

A Dockerfile with GDB & GEF installed and configured.

about

This is a really simple docker container. It installs GDB, gef and all of the dependencies you may need.

usage

Expose a mount into the container that is the folder with the data/binary you want to debug. Running it would be as follows:

docker run --rm -it -v $(pwd):/data ghcr.io/leonjza/gdb-docker:latest bash

Then, just run gdb like you'd normally do.

An example run would be:

❯ docker run --rm -it -v $(pwd):/data ghcr.io/leonjza/gdb-docker:latest bash
root@4e8a1086c414:/#
root@4e8a1086c414:/# gdb -q /data/main
GEF for linux ready, type `gef' to start, `gef config' to configure
96 commands loaded for GDB 10.1.90.20210103-git using Python engine 3.9
Reading symbols from /data/main...
warning: Missing auto-load script at offset 0 in section .debug_gdb_scripts
of file /data/main.
Use `info auto-load python-scripts [REGEXP]' to list them.
gef➤

About

A Dockerfile with GDB & GEF

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%