Add support for gef.

This commit is contained in:
David Tomaschik
2019-09-02 21:30:11 -07:00
parent 5353336b9d
commit ac2b8650b8
2 changed files with 14 additions and 1 deletions

View File

@@ -26,9 +26,12 @@ end
python
import sys
import os.path
gef = os.path.expanduser('~/tools/gef/gef.py')
pwndbg = os.path.expanduser('~/tools/pwndbg/gdbinit.py')
peda = os.path.expanduser('~/.peda/peda.py')
if os.path.isfile(pwndbg):
if os.path.isfile(gef):
gdb.execute('source {}'.format(gef))
elif os.path.isfile(pwndbg):
sys.path.insert(0, os.path.expanduser('~/tools/pwndbg/vendor'))
gdb.execute('source {}'.format(pwndbg))
elif os.path.isfile(peda):