From c01febbe9b9de39d77d259f9704d711932c78673 Mon Sep 17 00:00:00 2001 From: Jonathan Echavarria Date: Thu, 5 Oct 2017 09:39:39 -0400 Subject: [PATCH] added pushover channel --- extensions/notifications/channels/pushover.rb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 extensions/notifications/channels/pushover.rb diff --git a/extensions/notifications/channels/pushover.rb b/extensions/notifications/channels/pushover.rb new file mode 100644 index 000000000..9d0c7f3b2 --- /dev/null +++ b/extensions/notifications/channels/pushover.rb @@ -0,0 +1,23 @@ +require 'rushover' + +module BeEF +module Extension +module Notifications +module Channels + + class Pushover + + def initialize(message) + @config = BeEF::Core::Configuration.instance + + # Configure the Pushover Client + client = Rushover::Client.new(@config.get('beef.extension.notifications.pushover.app_key')) + + # Pushover.notification(message: message, title: "BeEF Notification") + client.notify(@config.get('beef.extension.notifications.pushover.user_key'), message) + end + end +end +end +end +end