ctf-tools/pwndbg/install
Michael Rodler b84c8f9b06 Added pwndbg gdb plugin. Adapted peda install to allow switching.
gdb now doesn't automatically load peda or pwndbg, instead provide init-X function and provide wrapper scripts
2016-05-04 20:01:01 +02:00

29 lines
477 B
Bash

#!/bin/bash
set -eu -o pipefail
git clone --depth 1 git clone https://github.com/zachriggle/pwndbg
mkdir bin
cat >> bin/pwndbg <<EOF
#!/bin/sh
exec gdb -q -ex init-pwndbg $@
EOF
chmod +rx bin/pwndbg
cd pwndbg
if ! grep "init-pwndbg" ~/.gdbinit; then
cat >> ~/.gdbinit <<EOF
####
# added by ctf-tools
define init-pwndbg
source $PWD/gdbinit.py
end
document init-pwndbg
Initializes the pwndbg gdb extension (https://github.com/zachriggle/pwndbg)
end
####
EOF
fi