ctf-tools/libheap/install

27 lines
510 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
2017-01-12 10:24:09 +00:00
document init-libheap
Initializes the libheap gdb extension (https://github.com/cloudburst/libheap)
end
####
EOF
fi