|
|
|
@ -10,11 +10,6 @@ if ! hash sudo 2>/dev/null && whoami | grep root; then
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Load Pwndbg into GDB on every launch.
|
|
|
|
|
|
|
|
if ! grep pwndbg ~/.gdbinit &>/dev/null; then
|
|
|
|
|
|
|
|
echo "source $PWD/gdbinit.py" >> ~/.gdbinit
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Helper functions
|
|
|
|
# Helper functions
|
|
|
|
linux() {
|
|
|
|
linux() {
|
|
|
|
uname | grep -i Linux &>/dev/null
|
|
|
|
uname | grep -i Linux &>/dev/null
|
|
|
|
@ -164,3 +159,8 @@ ${PYTHON} -m pip install ${INSTALLFLAGS} --upgrade pip
|
|
|
|
|
|
|
|
|
|
|
|
# Install Python dependencies
|
|
|
|
# Install Python dependencies
|
|
|
|
${PYTHON} -m pip install ${INSTALLFLAGS} -Ur requirements.txt
|
|
|
|
${PYTHON} -m pip install ${INSTALLFLAGS} -Ur requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Load Pwndbg into GDB on every launch.
|
|
|
|
|
|
|
|
if ! grep pwndbg ~/.gdbinit &>/dev/null; then
|
|
|
|
|
|
|
|
echo "source $PWD/gdbinit.py" >> ~/.gdbinit
|
|
|
|
|
|
|
|
fi
|
|
|
|
|