First of all, we need to install GDB:
sudo apt install gdb
Next we will be installing an extension to GDB called pwndbg
that will make our life easier. Instructions for installation are here.
You can verify that your installation works by running gdb /bin/true
in your command line, then running start
when the prompt shows.