mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Add MSF aliases.
This commit is contained in:
17
dotfiles/zshrc.d/msf.zsh
Normal file
17
dotfiles/zshrc.d/msf.zsh
Normal file
@@ -0,0 +1,17 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user