0%

gdb插件组合使用

alt

关于gdb插件peda,pwngdb,pwndbg的组合使用

感谢NoOne师傅的指导,膜拜师傅

安装peda插件

1
2
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py">> ~/.gdbinit

安装pwndbg插件

1
2
3
git clone https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh

安装pwngdb插件

1
2
3
cd ~/
git clone https://github.com/scwuaptx/Pwngdb.git
cp ~/Pwngdb/.gdbinit ~/

配置

我这里的pwndbg,peda,Pwngdb都在同一级目录下

1
2
3
4
cd ~/pwndbg/pwndbg/
cp ~/Pwngdb/pwndbg/pwngdb.py .
cd ~/pwndbg/pwndbg/commands/
cp ~/Pwngdb/pwndbg/commands/pwngdb.py .

再将.gdbinit文件配置成如下就好了, .gdbinit文件打开方式: vim ~/.gdbinit

1
2
3
4
5
6
7
8
9
10
11
source ~/pwndbg/gdbinit.py
source ~/peda/peda.py
source ~/Pwngdb/angelheap/gdbinit.py
source ~/Pwngdb/pwngdb.py

define hook-run
python
import angelheap
angelheap.init_angelheap()
end
end