Skip to content

Commit

Permalink
Updated gef-extras.sh installation script
Browse files Browse the repository at this point in the history
Force script to pip-install the requirements of `gef-extras`
  • Loading branch information
hugsy committed Jun 14, 2022
1 parent c671bed commit 37ddf86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/gef-extras.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

#
# Install gef-extras
# Requires git and pip already installed
#
set -e

if [ $# -ge 1 ]; then
Expand All @@ -12,6 +15,8 @@ else
fi

git clone https://github.com/hugsy/gef-extras.git "${DIR}"
ver=$(gdb -q -nx -ex 'pi print(f"{sys.version_info.major}.{sys.version_info.minor}", end="")' -ex quit)
python${ver} -m pip install --requirement "${DIR}"/docs/requirements.txt --upgrade
gdb -q -ex "gef config gef.extra_plugins_dir '${DIR}/scripts'" \
-ex "gef config pcustom.struct_path '${DIR}/structs'" \
-ex "gef config syscall-args.path '${DIR}/syscall-tables'" \
Expand Down

0 comments on commit 37ddf86

Please sign in to comment.