Added module support() function

git-svn-id: https://beef.googlecode.com/svn/trunk@1107 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
passbe
2011-07-26 07:52:36 +00:00
parent 4959963871
commit b8a879915a
4 changed files with 165 additions and 52 deletions

View File

@@ -22,12 +22,16 @@ beef:
description: "Sends an alert dialog to the hooked browser."
authors: ["bm"]
target:
user_notify: ["O"]
working:
IE:
min_ver: 7
min_ver: 6
max_ver: 8
os: "Windows"
FF: true
os: ["Mac", "Linux"]
C: false
user_notify: ["K", "O"]
not_working: "S"
FF: true
not_working:
IE:
max_ver: 8
os: "All"
S: true

View File

@@ -38,6 +38,19 @@ class Alert_dialog < BeEF::Core::Command
# This tells the framework to use the file 'alert.js' as the command module instructions.
use_template!
end
# set and return all options for this module
def self.options
return {
'name' => 'alert_dialog',
'description' => 'Sends an alert dialog to the victim',
'type' => 'textarea',
'filter' => '',
'default_value' => 'Alert box text',
'adminui_width' => '400px',
'adminui_height' => '100px'
}
end
# set and return all options for this module
def self.options
@@ -58,4 +71,4 @@ class Alert_dialog < BeEF::Core::Command
save content
end
end
end