Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/browser/hooked_origin/alert_dialog/module.rb
1155 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 Alert_dialog < BeEF::Core::Command
7
# set and return all options for this module
8
def self.options
9
[{
10
'name' => 'text',
11
'description' => 'Sends an alert dialog to the victim',
12
'type' => 'textarea',
13
'ui_label' => 'Alert text',
14
'value' => 'BeEF Alert Dialog',
15
'width' => '400px'
16
}]
17
end
18
19
def post_execute
20
content = {}
21
content['User Response'] = "The user clicked the 'OK' button when presented with an alert box."
22
save content
23
end
24
end
25
26