added pushover channel
This commit is contained in:
23
extensions/notifications/channels/pushover.rb
Normal file
23
extensions/notifications/channels/pushover.rb
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user