Alternative solution for path for MSF tools.

This commit is contained in:
David Tomaschik
2015-11-25 00:14:52 -08:00
parent 1442824e64
commit 138f9ef3c3
6 changed files with 33 additions and 20 deletions

View File

@@ -1,18 +0,0 @@
function _find_msf {
local CHOICES=("/opt/metasploit")
for p in ${CHOICES} ; do
if [ -d ${p} ] ; then
export MSF_PATH=${p}
break
fi
done
}
_find_msf
if [ -d ${MSF_PATH}/apps/pro/msf3/ ] ; then
export PATH="${PATH}:${MSF_PATH}/apps/pro/msf3"
fi
alias pattern_create="${MSF_PATH}/apps/pro/msf3/tools/exploit/pattern_create.rb"
alias pattern_offset="${MSF_PATH}/apps/pro/msf3/tools/exploit/pattern_offset.rb"
alias nasm_shell="${MSF_PATH}/apps/pro/msf3/tools/exploit/nasm_shell.rb"