Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/phonegap/phonegap_alert_user/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
# Phonegap_prompt_user
7
#
8
9
class Phonegap_alert_user < BeEF::Core::Command
10
def self.options
11
[{
12
'name' => 'title',
13
'description' => 'Alert title',
14
'ui_label' => 'Title',
15
'value' => 'Beef',
16
'width' => '300px'
17
}, {
18
'name' => 'message',
19
'description' => 'Message',
20
'ui_label' => 'Message',
21
'value' => 'Game over!',
22
'width' => '300px'
23
}, {
24
'name' => 'buttonName',
25
'description' => 'Default button name',
26
'ui_label' => 'Button name',
27
'value' => 'Done',
28
'width' => '100px'
29
}]
30
end
31
32
def callback
33
content = {}
34
content['Result'] = @datastore['result']
35
save content
36
end
37
end
38
39