mirror of
https://github.com/zardus/ctf-tools
synced 2025-03-14 22:06:58 +00:00
Create a libheap initializer gdb command
This commit is contained in:
parent
63584b4957
commit
8a7c937af6
1 changed files with 19 additions and 0 deletions
|
@ -5,3 +5,22 @@ source ctf-tools-venv-activate
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue