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:
@@ -15,7 +15,7 @@
|
||||
#
|
||||
class Collect_links < BeEF::Core::Command
|
||||
|
||||
def callback
|
||||
def post_execute
|
||||
content = {}
|
||||
content['Links'] = @datastore['links']
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class Detect_soc_nets < BeEF::Core::Command
|
||||
]
|
||||
end
|
||||
|
||||
def callback
|
||||
def post_execute
|
||||
content = {}
|
||||
content['GMail'] = @datastore['gmail']
|
||||
content['Facebook'] = @datastore['facebook']
|
||||
|
||||
@@ -21,7 +21,7 @@ class Detect_tor < BeEF::Core::Command
|
||||
]
|
||||
end
|
||||
|
||||
def callback
|
||||
def post_execute
|
||||
return if @datastore['result'].nil?
|
||||
|
||||
save({'result' => @datastore['result']})
|
||||
|
||||
@@ -43,7 +43,7 @@ class Internal_network_fingerprinting < BeEF::Core::Command
|
||||
]
|
||||
end
|
||||
|
||||
def callback
|
||||
def post_execute
|
||||
content = {}
|
||||
content['device'] =@datastore['device'] if not @datastore['device'].nil?
|
||||
content['url'] = @datastore['url'] if not @datastore['url'].nil?
|
||||
|
||||
Reference in New Issue
Block a user