# General options set verbose off set confirm off set disassembly-flavor intel set output-radix 0x10 set input-radix 10. # helpful shortcuts define lsbp info breakpoints end document lsbp List all breakpoints end define iframe info frame info args info locals end define reg info registers end # Fancy sourcing of modules python import sys import os.path pwndbg = os.path.expanduser('~/.pwndbg/gdbinit.py') peda = os.path.expanduser('~/.peda/peda.py') if os.path.isfile(pwndbg): sys.path.insert(0, os.path.expanduser('~/.pwndbg/vendor')) gdb.execute('source {}'.format(pwndbg)) elif os.path.isfile(peda): gdb.execute('source {}'.format(peda)) local_init = os.path.expanduser('~/.gdbinit.local') if os.path.isfile(local_init): gdb.execute('source {}'.format(local_init)) end