Cleaned up pre_http_start + mount_handlers. Added direct call API options for mounting and unmounting http handlers

git-svn-id: https://beef.googlecode.com/svn/trunk@1184 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
passbe
2011-08-12 00:13:36 +00:00
parent d870c423fd
commit 0067a9c088
12 changed files with 37 additions and 31 deletions

View File

@@ -19,18 +19,18 @@ module NetworkStack
module RegisterHttpHandler
# use of the API right here
extend BeEF::API::Server::Handler
extend BeEF::API::Server
#
# Register the http handler for the network stack
#
def self.mount_handlers(beef_server)
def self.mount_handler(server)
#dynamic handler
beef_server.mount('/dh', true, BeEF::Core::NetworkStack::Handlers::DynamicReconstruction)
server.mount('/dh', true, BeEF::Core::NetworkStack::Handlers::DynamicReconstruction)
end
end
end
end
end
end