File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 3737
3838git clone --branch ${branch} https://github.com/hugsy/gef-extras.git " ${DIR} "
3939ver=$( gdb -q -nx -ex ' pi print(f"{sys.version_info.major}.{sys.version_info.minor}", end="")' -ex quit)
40- python${ver} -m pip install --requirement " ${DIR} " /requirements.txt --upgrade
40+ echo " [+] Installing gef-extras dependencies..."
41+ pip_output=$( python${ver} -m pip install --requirement " ${DIR} /requirements.txt" --upgrade 2>&1 ) || failed=1
42+
43+ if [ " $failed " = " 1" ]; then
44+ if echo " $pip_output " | grep -qi " externally-managed-environment" ; then
45+ echo " [!] Detected externally-managed-environment, retrying with --break-system-packages ..."
46+ python${ver} -m pip install --requirement " ${DIR} /requirements.txt" --upgrade --break-system-packages
47+ else
48+ echo " [!] pip failed with unknown error:"
49+ echo " $pip_output "
50+ exit 1
51+ fi
52+ fi
53+
4154gdb -q -ex " pi gef.config['context.layout'] += ' syscall_args'" \
4255 -ex " pi gef.config['context.layout'] += ' libc_function_args'" \
4356 -ex " gef config gef.extra_plugins_dir '${DIR} /scripts'" \
You can’t perform that action at this time.
0 commit comments