mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-12 14:02:33 +00:00
added gdb-heap gdb extension
This commit is contained in:
parent
8838be9744
commit
b28ad9eed6
3 changed files with 29 additions and 0 deletions
22
gdb-heap/install
Executable file
22
gdb-heap/install
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
git clone --depth=1 http://git.fedorahosted.org/git/gdb-heap.git || true
|
||||
|
||||
cd gdb-heap
|
||||
# make sure gdbinit exists
|
||||
touch ~/.gdbinit
|
||||
if ! grep "init-gdb-heap" ~/.gdbinit; then
|
||||
cat >> ~/.gdbinit <<EOF
|
||||
|
||||
####
|
||||
# added by ctf-tools
|
||||
define init-gdb-heap
|
||||
python import sys; sys.path.append("$PWD"); import heap
|
||||
end
|
||||
document init-gdb-heap
|
||||
Initializes the gdb-heap extension (https://fedorahosted.org/gdb-heap/)
|
||||
end
|
||||
####
|
||||
|
||||
EOF
|
||||
fi
|
3
gdb-heap/install-root-debian
Executable file
3
gdb-heap/install-root-debian
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
apt-get install -y libc6-dbg
|
4
gdb-heap/install-root-fedora
Executable file
4
gdb-heap/install-root-fedora
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
dnf install -y dnf-plugins-core
|
||||
dnf debuginfo-install -y glibc
|
Loading…
Reference in a new issue