Merge pull request #1032 from bmantra/master

add beef bind metasploit modules to live cd closes #934
This commit is contained in:
bmantra
2014-07-19 20:12:17 +02:00

View File

@@ -66,6 +66,19 @@ disable_msf() {
sed -i 's/auto_msfrpcd:\strue/auto_msfrpcd: false/g' /opt/beef/extensions/metasploit/config.yaml
}
#
# function to copy the BeEF-bind module into metasploit
#
copy_beefbind() {
cp /opt/beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-handler.rb /opt/metasploit-framework/lib/msf/core/handler/beef_bind.rb
cp /opt/beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stage-windows-x86.rb /opt/metasploit-framework/modules/payloads/stages/windows/beef_shell.rb
cp /opt/beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stager-windows-x86.rb /opt/metasploit-framework/modules/payloads/stagers/windows/beef_bind.rb
cp /opt/beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stage-linux-x86.rb /opt/metasploit-framework/modules/payloads/stages/linux/x86/beef_shell.rb
cp /opt/beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stager-linux-x86.rb /opt/metasploit-framework/modules/payloads/stagers/linux/x86/beef_bind.rb
cp /opt/beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stage-linux-x64.rb /opt/metasploit-framework/modules/payloads/stages/linux/x64/beef_shell.rb
cp /opt/beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stager-linux-x64.rb /opt/metasploit-framework/modules/payloads/stagers/linux/x64/beef_bind.rb
}
#
# function to exit cleanly
#
@@ -147,6 +160,7 @@ show_menu() {
else
echo "[7] Enable metasploit-framework integration [Currently Disabled]"
fi
echo "[8] Copy BeEF-bind module into the metasploit-framework"
echo ""
echo "[q] Quit to terminal"
echo ""
@@ -260,7 +274,14 @@ show_menu() {
enable_msf
fi
fi
#
# copy BeEF-bind module to Metasploit
#
if [ $var = "8" ] ; then
copy_beefbind
fi
#
# end background beef process
#