Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/phonegap/phonegap_prompt_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_prompt_user < BeEF::Core::Command
10
def self.options
11
[{
12
'name' => 'title',
13
'description' => 'Prompt title',
14
'ui_label' => 'Title',
15
'value' => 'Apple ID',
16
'width' => '300px'
17
18
}, {
19
'name' => 'question',
20
'description' => 'Prompt question',
21
'ui_label' => 'Question',
22
'value' => 'Please enter your Apple ID password',
23
'width' => '300px'
24
}, {
25
'name' => 'ans_yes',
26
'description' => 'Prompt positive answer button label',
27
'ui_label' => 'Yes',
28
'value' => 'Submit',
29
'width' => '100px'
30
}, {
31
'name' => 'ans_no',
32
'description' => 'Prompt negative answer button label',
33
'ui_label' => 'No',
34
'value' => 'Cancel',
35
'width' => '100px'
36
}, {
37
'name' => 'text',
38
'description' => 'Default text to display',
39
'ui_label' => 'Default text',
40
'value' => 'Password',
41
'width' => '100px'
42
}]
43
end
44
45
def callback
46
content = {}
47
content['Result'] = @datastore['result']
48
save content
49
end
50
end
51
52