Installing gdb
sudo apt install gdb
Installing PEDA
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit
Open binaries with gdb
gdb [binary]
gdb -p [process id]
Find below some additional and useful gdb commands:
For example, you can use:
- x/20w $esi, which displays 20 words starting from where esi points to.
OR
- x/10i $eip, which displays 10 instructions starting from where eip points to.