mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Update metasploit.sh script to handle metasploit-framework deb install.
This commit is contained in:
@@ -25,5 +25,11 @@ if [ -f "${BASE}/apps/pro/msf3/tools/exploit/${NAME}.rb" ]; then
|
|||||||
exec ${BASE}/apps/pro/msf3/tools/exploit/${NAME}.rb "$@"
|
exec ${BASE}/apps/pro/msf3/tools/exploit/${NAME}.rb "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Can cause recursive loop
|
export BASE="/opt/metasploit-framework"
|
||||||
# exec ${NAME} "$@"
|
if [ -f "${BASE}/embedded/framework/tools/exploit/${NAME}.rb" ]; then
|
||||||
|
exec ${BASE}/embedded/bin/ruby \
|
||||||
|
"${BASE}/embedded/framework/tools/exploit/${NAME}.rb" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Couldn't find script." >&2
|
||||||
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user