ctf-tools/libheap/install

27 lines
509 B
Text
Raw Normal View History

2016-10-13 08:06:35 +00:00
#!/bin/bash -e
2016-10-11 09:43:07 +00:00
# move to ctftools virtual env
2016-10-13 08:06:10 +00:00
source ctf-tools-venv-activate
2016-10-11 09:43:07 +00:00
2016-10-13 08:06:10 +00:00
git clone --depth 1 https://github.com/cloudburst/libheap
pip install -e libheap
# make sure gdbinit exists
touch ~/.gdbinit
# check if init command exits
if ! grep "init-libheap" ~/.gdbinit; then
cat >> ~/.gdbinit <<EOF
####
# added by ctf-tools
define init-libheap
python from libheap import *
end
document init-pwndbg
Initializes the libheap gdb extension (https://github.com/cloudburst/libheap)
end
####
EOF
fi