22 01 2017
gdb cheat sheet
This is just a small list i’ve collected for myself. Not meant to be complete …
set disassembly-flavor intel …. obligatory life saver 😉
x/100bs $rsp ……. ASCII dump stack (byte-wise)
x/100ws $rsp ……. ASCII dump stack (lower word-bytes only)
x/80x $rsp ………. HEX dump stack
x/80xb 0x7fffffffd880 ….. HEX dump memory address
xxd from http://stackoverflow.com/questions/9233095/memory-dump-formatted-like-xxd-from-gdb:
(gdb) define xxd >dump binary memory dump.bin $arg0 $arg0+$arg1 >shell xxd dump.bin >end (gdb) xxd &j 10
disas …. disassemble
r …….. run
b 10 …. set breakpoint on line 10
b *0x000000000040021e …. set breakpoint at address
info reg … show registers
info b ….. show breakpoints
file blabla.bin …. load file
LENOVO Thinkpad X1 T450s X250: BIOS update with GNU/Linux – create bootable USB drive (create bootable USB drive with geteltorito) VPN Gate, autovpn
Comments are currently closed.