pwntools:to remove gdb and install pwndbg instead

completely remove gdb!

Posted by fjh1997 on August 26, 2019

pwntools:to remove gdb and install pwndbg instead”

It is well known that pwndbg is an enhanced version of gdb (you can print the stack directly, etc.). Using gdb.attach() to call pwndbg in pwntool,which enables you to implement pwning while debugging.But if you have already installed general gdb before installing pwndbg. Then you couldn’t complete the installation because the python module of gdb and pwndbg conflict,therefore gdb.attach () is to call gdb rather than pwndbg, so we have to remove gdb and then install pwndbg, this remove method is a bit troublesome (environment is kali, could also apply to ubuntu or debian)

sudo apt-get remove --purge gdb
sudo rm -rf /usr/share/gdb

install pwndbg after finishing the removal

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

Then enjoy it!