Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/social_engineering/fake_notification_ff/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_ff < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'url', 'ui_label' => 'Plugin URL', 'value' => '', 'width' => '150px' },
10
{ 'name' => 'notification_text',
11
'description' => 'Text displayed in the notification bar',
12
'ui_label' => 'Notification text',
13
'value' => 'An additional plug-in is required to display some elements on this page.' }
14
]
15
end
16
17
def post_execute
18
content = {}
19
content['result'] = @datastore['result']
20
save content
21
end
22
end
23
24