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

@@ -21,7 +21,7 @@ class Detect_visited_urls < BeEF::Core::Command
]
end
def callback
def post_execute
save({'result' => @datastore['result']})
end

View File

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

View File

@@ -22,7 +22,7 @@ class Link_rewrite < BeEF::Core::Command
]
end
def callback
def post_execute
save({'result' => @datastore['result']})
end

View File

@@ -21,7 +21,7 @@ class Site_redirect < BeEF::Core::Command
]
end
def callback
def post_execute
save({'result' => @datastore['result']})
end

View File

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