gdb插件使用方法

0x00 peda

peda

安装:
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit
echo "DONE! debug your program with gdb and enjoy"

使用:例如
echo "source ~/.GdbPlugins/peda/peda.py" > ~/.gdbinit
$ gdb pwn
gdb-peda$ checksec

  

 0x01 gef

gef

安装:
$ wget -q -O- https://github.com/hugsy/gef/raw/master/gef.sh | sh
$ wget -O ~/.gdbinit-gef.py -q https://github.com/hugsy/gef/raw/master/gef.py
$ echo source ~/.gdbinit-gef.py >> ~/.gdbinit
使用:
$ gdb -q /path/to/my/bin 
gef➤ gef help

                                                                                                                                                                                                                                                                                                                                                .

Always believe that good things will come.
原文地址:https://www.cnblogs.com/elvirangel/p/6707950.html