GDB-PEDA使用方法
简介
PEDA(Python Exploit Development Assistance for GDB)是一个强大的GDB插件。它提供了更多功能,如高亮显示反汇编代码、寄存器等信息。PEDA提供了一些实用新的命令,比如checksec、aslr等
https://blog.csdn.net/SmalOSnail/article/details/53149426
一键安装:
1 | git clone https://github.com/longld/peda.git ~/peda |
安装GDB插件
- Peda: https://github.com/longld/peda
- Gef: https://github.com/hugsy/gef
- pwndgb:
peda
1 | git clone https://github.com/longld/peda.git ~/peda |
gef
官方文档地址
1 | wget -O ~/.gdbinit-gef.py -q https://github.com/hugsy/gef/raw/master/gef.py |
pwndbg
1 | git clone https://github.com/pwndbg/pwndbg |
确认插件生效
使用gdb -q xxx
命令启动调试程序,出现类似字符串,说明已经成功安装
1 | GEF for linux ready, type `gef' to start, `gef config' to configure |
分别启用插件
修改.gdbinit
文件的内容为如下配置:
1 | define init-peda |
Additionally, create the following 3 files in your /usr/bin
folder:
First create /usr/bin/gdb-peda
and paste the following:
1 |
|
Then /usr/bin/gdb-pwndbg
1 |
|
And lastly, /usr/bin/gdb-gef
1 |
|
使用方法
- Post title:GDB-PEDA使用方法
- Post author:ssooking
- Create time:2019-12-31 17:35:00
- Post link:https://ssooking.github.io/2019/12/gdb-peda使用方法/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.