From 409d9962bb982ca0953612d81b9fcbef1e9df0ed Mon Sep 17 00:00:00 2001 From: Jonathan Echavarria Date: Thu, 5 Oct 2017 09:43:11 -0400 Subject: [PATCH] modified the notifications extenion to add pushover support --- extensions/notifications/notifications.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/notifications/notifications.rb b/extensions/notifications/notifications.rb index f2c67f5cb..58b03409e 100644 --- a/extensions/notifications/notifications.rb +++ b/extensions/notifications/notifications.rb @@ -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