git-svn-id: https://beef.googlecode.com/svn/trunk@506 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
43 lines
1.0 KiB
Ruby
43 lines
1.0 KiB
Ruby
module BeEF
|
|
module Modules
|
|
module Commands
|
|
|
|
class Detect_plugins < BeEF::Command
|
|
|
|
def initialize
|
|
super({
|
|
'Name' => 'Browser Details',
|
|
'Description' => %Q{
|
|
This module will retrieve the selected zombie browser plugins, browser type
|
|
and scripting engines, plus screen dimensions.'
|
|
},
|
|
'Category' => 'Recon',
|
|
'Author' => ['wade','vo','passbe'],
|
|
'File' => __FILE__,
|
|
'Target' => {
|
|
'browser_name' => BeEF::Constants::Browsers::ALL
|
|
}
|
|
})
|
|
use 'beef.dom'
|
|
use_template!
|
|
end
|
|
|
|
def callback
|
|
content = {}
|
|
content['Plugins'] = @datastore['plugins']
|
|
content['Browser type'] = @datastore['browser_type']
|
|
content['Java enabled'] = @datastore['java_enabled']
|
|
content['VBscript enabled'] = @datastore['vbscript_enabled']
|
|
content['Has Flash'] = @datastore['has_flash']
|
|
content['Screen Parameters'] = @datastore['screen_params']
|
|
content['Window Size'] = @datastore['window_size']
|
|
|
|
save content
|
|
#update_zombie!
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end |