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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user