git-svn-id: https://beef.googlecode.com/svn/trunk@510 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
40 lines
728 B
Ruby
40 lines
728 B
Ruby
module BeEF
|
|
module Modules
|
|
module Commands
|
|
|
|
|
|
class Browser_exploit < BeEF::Command
|
|
|
|
|
|
def initialize
|
|
super({
|
|
'Name' => 'Browser Exploit',
|
|
|
|
'Description' => %Q{
|
|
This module will launch a Metasploit exploit against the host
|
|
},
|
|
'Category' => 'Metasploit',
|
|
'Author' => ['sussurro'],
|
|
'Data' => [['name' => 'sploit_url', 'ui_label' => 'Exploit URL', 'value' =>'http://www.google.com']],
|
|
|
|
'File' => __FILE__,
|
|
'Target' => {
|
|
'browser_name' => BeEF::Constants::Browsers::ALL
|
|
}
|
|
})
|
|
|
|
use 'beef.dom'
|
|
use_template!
|
|
end
|
|
|
|
def callback
|
|
save({'result' => @datastore['result']})
|
|
end
|
|
|
|
end
|
|
|
|
|
|
end
|
|
end
|
|
end
|