mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-10 08:24:12 +00:00
peda/gef/pwndbg: make sure ~/.gdbinit exits before grep. just to make sure.
This commit is contained in:
parent
0793cb8db1
commit
de7d02ecc9
3 changed files with 6 additions and 1 deletions
|
@ -11,6 +11,8 @@ EOF
|
|||
chmod +rx bin/gdb-gef
|
||||
|
||||
cd gef
|
||||
# make sure gdbinit exists
|
||||
touch ~/.gdbinit
|
||||
if ! grep "init-gef" ~/.gdbinit; then
|
||||
cat >> ~/.gdbinit <<EOF
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@ EOF
|
|||
chmod +rx bin/gdb-peda
|
||||
|
||||
cd peda
|
||||
#echo "source $PWD/peda.py" >> ~/.gdbinit
|
||||
# make sure gdbinit exists
|
||||
touch ~/.gdbinit
|
||||
if ! grep "init-peda" ~/.gdbinit; then
|
||||
cat >> ~/.gdbinit <<EOF
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@ EOF
|
|||
chmod +rx bin/pwndbg
|
||||
|
||||
cd pwndbg
|
||||
# make sure gdbinit exists
|
||||
touch ~/.gdbinit
|
||||
if ! grep "init-pwndbg" ~/.gdbinit; then
|
||||
cat >> ~/.gdbinit <<EOF
|
||||
|
||||
|
|
Loading…
Reference in a new issue