ctf-tools/pwndbg/install
Paul Makowski 6d1621b305 fix typo
2016-07-14 15:36:57 -07:00

29 lines
470 B
Bash
Executable file

#!/bin/bash
set -eu -o pipefail
git clone --depth 1 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