Removed all super() methods and moved all data into new options() method. Fixes issue 330

git-svn-id: https://beef.googlecode.com/svn/trunk@1120 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
passbe
2011-07-28 01:36:24 +00:00
parent 5b4ff61909
commit 3455ebda87
38 changed files with 120 additions and 887 deletions

View File

@@ -15,29 +15,6 @@
#
class Test_return_ascii_chars < BeEF::Core::Command
def initialize
super({
'Name' => 'Return Ascii Chars',
'Description' => %Q{
This module will return the set of ascii chars.
},
'Category' => 'Debug',
'Data' => [
# {'name' => 'repeat', 'ui_label' => 'Times to repeat', 'value' =>'1024'},
# {'name' => 'repeat_string', 'ui_label' => 'String to repeat', 'value' =>'\u00AE'}
],
'Author' => ['wade'],
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!
end
def callback
content = {}
content['Result String'] = @datastore['result_string']

View File

@@ -15,28 +15,13 @@
#
class Test_return_long_string < BeEF::Core::Command
def initialize
super({
'Name' => 'Return Long String',
'Description' => %Q{
This module will return a string of the specified length.
},
'Category' => 'Debug',
'Data' => [
{'name' => 'repeat', 'ui_label' => 'Times to repeat', 'value' =>'1024'},
{'name' => 'repeat_string', 'ui_label' => 'String to repeat', 'value' =>'\u00AE'}
],
'Author' => ['wade'],
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!
end
def self.options
return [
{'name' => 'repeat', 'description' => 'Times to repeat', 'ui_label' => 'Times to repeat', 'value' =>'1024'},
{'name' => 'repeat_string', 'description' => 'Strings to repeat', 'ui_label' => 'String to repeat', 'value' =>'\u00AE'}
]
end
def callback
content = {}