ctf-tools/libheap/install

27 lines
510 B
Text
Raw Normal View History

2016-10-13 01:06:35 -07:00
#!/bin/bash -e
2016-10-11 11:43:07 +02:00
# move to ctftools virtual env
2016-10-13 01:06:10 -07:00
source ctf-tools-venv-activate
2016-10-11 11:43:07 +02:00
2016-10-13 01:06:10 -07: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 11:24:09 +01:00
document init-libheap
Initializes the libheap gdb extension (https://github.com/cloudburst/libheap)
end
####
EOF
fi