环境
Ubuntu 16.04 LTS
安装
在根目录下下载:
git clone https://github.com/longld/peda.git
git clone https://github.com/scwuaptx/Pwngdb.git
git clone https://github.com/pwndbg/pwndbg.git
安装配置pwndbg:
cd ~/pwndbg
./setup.sh
报错:
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,>&#61;1.0.2rc1, but you have unicorn 1.0.2 which is incompatible.
大概意思是unicorn版本安装错了&#xff0c;可以卸载老版本&#xff0c;安装要求的版本&#xff1a;
sudo pip2 uninstall unicorn
sudo pip2 install unicorn&#61;&#61;1.0.3
配置.gdbinit
vim ~/.gdbinit
内容如下&#xff1a;
source ~/pwndbg/gdbinit.py
source ~/Pwngdb/pwngdb.py
source ~/peda/peda.py
source ~/Pwngdb/angelheap/gdbinit.py
注意&#xff1a;要把source ~/pwndbg/gdbinit.py
的配置放在前面&#xff0c;否则会报错&#xff1a;
Python Exception <class &#39;AttributeError&#39;> module &#39;pwndbg&#39; has no attribute &#39;commands&#39;: