Reworked timed API system. You now must use the BeEF::API::Registra.register() to hook into timed API calls. This will speed up the framework and allow paramater matching for API hooks.
git-svn-id: https://beef.googlecode.com/svn/trunk@1235 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -18,9 +18,6 @@ module Core
|
||||
module NetworkStack
|
||||
|
||||
module RegisterHttpHandler
|
||||
# use of the API right here
|
||||
extend BeEF::API::Server
|
||||
|
||||
#
|
||||
# Register the http handler for the network stack
|
||||
#
|
||||
@@ -31,6 +28,9 @@ module NetworkStack
|
||||
|
||||
end
|
||||
|
||||
# Register core API calls
|
||||
BeEF::API::Registra.instance.register(BeEF::Core::NetworkStack::RegisterHttpHandler, BeEF::API::Server, 'mount_handler')
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user