modified the notifications extenion to add pushover support

This commit is contained in:
Jonathan Echavarria
2017-10-05 09:43:11 -04:00
parent d47303f0e7
commit 409d9962bb

View File

@@ -6,6 +6,7 @@
require 'extensions/notifications/channels/tweet'
require 'extensions/notifications/channels/email'
require 'extensions/notifications/channels/pushover'
module BeEF
module Extension
@@ -39,6 +40,10 @@ module Notifications
to_address = @config.get('beef.extension.notifications.email.to_address')
BeEF::Extension::Notifications::Channels::Email.new(to_address,message)
end
if @config.get('beef.extension.notifications.pushover.enable') == true
BeEF::Extension::Notifications::Channels::Pushover.new(message)
end
end
end