eselect-metasploit: add env variable check for people who forget to source their profile after install

This commit is contained in:
Rick Farina (Zero_Chaos) 2020-09-25 22:01:08 -04:00
parent 7a0b920ccd
commit 405d481a08
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 5 additions and 0 deletions

View file

@ -7,6 +7,11 @@
header="$(head -n1 /usr/lib/metasploit/msfconsole)"
ruby="${header:2}"
if [ -z "${MSF_LOCAL_LIB}" ] || [ -z "${MSF_DATABASE_CONFIG}" ] || [ -z "${MSF_ROOT}" ]; then
printf "Metasploit environmental variables aren't set.\n"
printf "Did you forget to '. /etc/profile'?\n"
fi
if [ -f "/usr/lib/metasploit/Gemfile.lock" ]; then
GEMFILE=/usr/lib/metasploit/Gemfile
#printf "Checking for known vulnerabilities...\n"