Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/core/main/network_stack/api.rb
1154 views
1
#
2
# Copyright (c) 2006-2025 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
module BeEF
7
module Core
8
module NetworkStack
9
module RegisterHttpHandler
10
# Register the http handler for the network stack
11
# @param [Object] server HTTP server instance
12
def self.mount_handler(server)
13
# @note this mounts the dynamic handler
14
server.mount('/dh', BeEF::Core::NetworkStack::Handlers::DynamicReconstruction.new)
15
end
16
end
17
18
BeEF::API::Registrar.instance.register(BeEF::Core::NetworkStack::RegisterHttpHandler, BeEF::API::Server, 'mount_handler')
19
end
20
end
21
end
22
23