Added pre_execute, execute and post_execute to modules.
git-svn-id: https://beef.googlecode.com/svn/trunk@1197 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -19,7 +19,7 @@ class Insecure_url_skype < BeEF::Core::Command
|
||||
{ 'name' => 'tel_num', 'description' => 'The telephone number to dial', 'ui_label'=>'Number', 'value' =>'5551234', 'width' => '200px' }
|
||||
end
|
||||
|
||||
def callback
|
||||
def post_execute
|
||||
content = {}
|
||||
content['Result'] = @datastore['result']
|
||||
save content
|
||||
|
||||
@@ -21,7 +21,7 @@ class Iphone_tel < BeEF::Core::Command
|
||||
]
|
||||
end
|
||||
|
||||
def callback
|
||||
def post_execute
|
||||
content = {}
|
||||
content['Result'] = @datastore['result']
|
||||
save content
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#
|
||||
class Physical_location < BeEF::Core::Command
|
||||
|
||||
def callback
|
||||
def post_execute
|
||||
content = {}
|
||||
content['Geolocation Enabled'] = @datastore['geoLocEnabled']
|
||||
content['Latitude'] = @datastore['latitude']
|
||||
|
||||
Reference in New Issue
Block a user