From 2d3ac97f5e6177f0b691be6ad4706269777f8237 Mon Sep 17 00:00:00 2001 From: bmantra Date: Sat, 19 Jul 2014 19:50:11 +0200 Subject: [PATCH] add beef bind metasploit modules to live cd #934 --- liveCD/BeEFLive.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/liveCD/BeEFLive.sh b/liveCD/BeEFLive.sh index ee5babe3d..6540678ea 100644 --- a/liveCD/BeEFLive.sh +++ b/liveCD/BeEFLive.sh @@ -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 #