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:
passbe
2011-08-17 04:04:32 +00:00
parent 8fe714881a
commit 2e70f86866
37 changed files with 50 additions and 36 deletions

View File

@@ -26,8 +26,8 @@ class Alert_dialog < BeEF::Core::Command
'width' => '400px'
}]
end
def callback
def post_execute
content = {}
content['User Response'] = "The user clicked the 'OK' button when presented with an alert box."
save content

View File

@@ -15,7 +15,7 @@
#
class Clipboard_theft < BeEF::Core::Command
def callback
def post_execute
content = {}
content['clipboard'] = @datastore['clipboard']
save content

View File

@@ -21,7 +21,7 @@ class Deface_web_page < BeEF::Core::Command
]
end
def callback
def post_execute
content = {}
content['Result'] = @datastore['result']
save content

View File

@@ -20,7 +20,7 @@ class Extract_local_storage < BeEF::Core::Command
# http://diveintohtml5.org/storage.html
#
def callback
def post_execute
content = {}
content['localStorage'] = @datastore['localStorage']
save content

View File

@@ -25,7 +25,7 @@ class Prompt_dialog < BeEF::Core::Command
# This method is being called when a zombie sends some
# data back to the framework.
#
def callback
def post_execute
# return if @datastore['answer']==''

View File

@@ -25,7 +25,7 @@ class Raw_javascript < BeEF::Core::Command
# This method is being called when a zombie sends some
# data back to the framework.
#
def callback
def post_execute
save({'result' => @datastore['result']})
end

View File

@@ -22,7 +22,7 @@ class Replace_video < BeEF::Core::Command
]
end
def callback
def post_execute
content = {}
content['Result'] = @datastore['result']
save content

View File

@@ -15,7 +15,7 @@
#
class Rickroll < BeEF::Core::Command
def callback
def post_execute
content = {}
content['Result'] = @datastore['result']
save content