

GEF is in very active development, so the default branch is dev. $ echo source `pwd`/gef/gef.py > ~/.gdbinit To contribute to GEF, you might prefer using git directly. If no updates are available, gef will respond No update instead. This will deploy the latest version of gef's main branch from Github. with python /path/to/gef.py -update $ python ~/.gdbinit-gef.py -update If your host/VM is connected to the Internet, you can update gef easily to the latest version (even without git installed). You can confirm it by checking the ~/.gdbinit file and see a line that sources (i.e. That's it! GEF is installed and correctly set up. (gdb) pi import urllib.request as u, tempfile as t g=t.NamedTemporaryFile(suffix='-gef.py') open(g.name, 'wb+').write(u.urlopen('').read()) gdb.execute('source %s' % g.name) Or if you prefer wget bash -c "$(wget -O -)"Īlternatively from inside gdb directly: $ gdb -q Simply make sure you have GDB 8.0 or higher, compiled with Python 3.6 or higher, and run bash -c "$(curl -fsSL )" The quickest way to get started with GEF is through the installation script available. your own script which can leverage the GEF API for the heavy lifting Standalone Quick install community-built scripts, functions and architectures in the repo gef-extras (see below) GEF itself provides most (if not all 🤯) features required for typical sessions. There are none: GEF works out of the box! $ gdb -nx -ex 'pi print(sys.version)' -ex quit This should display your version of Python compiled with gdb. You can verify it with the following command: $ gdb -nx -ex 'pi print(sys.version)' -ex quit


Note that gef-legacy won't provide new features, and only functional bugs will be handled. If you absolutely require GDB + Python 2, please use GEF-Legacy instead. For most people, simply using your distribution package manager should be enough.Īs of January 2020, GEF officially doesn't support Python 2 any longer, due to Python 2 becoming officially deprecated. It must be compiled with Python 3.6 or higher support.

GEF - GDB Enhanced Features documentation
