Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/social_engineering/fake_notification/module.rb
1873 views
1
#
2
# Copyright (c) 2006-2026 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 < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'notification_text',
10
'description' => 'Text displayed in the notification bar',
11
'ui_label' => 'Notification text',
12
'value' => "This website wants to run the following applet: 'Java' from 'Microsoft Inc'. To continue using this website you must accept the following security popup" }
13
]
14
end
15
16
#
17
# This method is being called when a zombie sends some
18
# data back to the framework.
19
#
20
def post_execute
21
content = {}
22
content['result'] = @datastore['result']
23
save content
24
end
25
end
26
27