环境

Ubuntu 16.04 LTS

peda、Pwngdb、pwndbg的安装及避坑指南_pwndgb

安装

在根目录下下载:

git clone https://github.com/longld/peda.git
git clone https://github.com/scwuaptx/Pwngdb.git
git

安装配置pwndbg:

cd

报错:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pwntools 4.2.1 requires unicorn<1.0.2rc4,>=1.0.2rc1, but you have unicorn 1.0.2 which

peda、Pwngdb、pwndbg的安装及避坑指南_peda_02


大概意思是unicorn版本安装错了,可以卸载老版本,安装要求的版本:

sudo pip2 uninstall unicorn
sudo pip2 install unicorn==1.0.3

配置.gdbinit

vim

内容如下:

source ~/pwndbg/gdbinit.py
source ~/Pwngdb/pwngdb.py
source ~/peda/peda.py
source

注意:要把​​source ~/pwndbg/gdbinit.py​​的配置放在前面,否则会报错:

Python Exception <class 'AttributeError'> module 'pwndbg' has no attribute 'commands':