Warn on Event Logger load if WebSockets are enabled
This commit is contained in:
@@ -6,7 +6,18 @@
|
|||||||
module BeEF
|
module BeEF
|
||||||
module Extension
|
module Extension
|
||||||
module Events
|
module Events
|
||||||
|
|
||||||
|
module PostLoad
|
||||||
|
|
||||||
|
BeEF::API::Registrar.instance.register(BeEF::Extension::Events::PostLoad, BeEF::API::Extensions, 'post_load')
|
||||||
|
|
||||||
|
def self.post_load
|
||||||
|
if BeEF::Core::Configuration.instance.get("beef.http.websocket.enable")
|
||||||
|
print_error 'Event Logger extension is not compatible with WebSockets command and control channel'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
module RegisterHttpHandler
|
module RegisterHttpHandler
|
||||||
|
|
||||||
# Register API calls
|
# Register API calls
|
||||||
|
|||||||
Reference in New Issue
Block a user