Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/phonegap/phonegap_keychain/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_keychain
7
#
8
9
class Phonegap_keychain < BeEF::Core::Command
10
def self.options
11
[{
12
'name' => 'servicename',
13
'description' => 'Service name',
14
'ui_label' => 'Service name',
15
'value' => 'ServiceNameTest',
16
'width' => '300px'
17
18
}, {
19
'name' => 'key',
20
'description' => 'Key',
21
'ui_label' => 'Key',
22
'value' => 'TestKey',
23
'width' => '300px'
24
}, {
25
'name' => 'value',
26
'description' => 'Value',
27
'ui_label' => 'Value',
28
'value' => 'TestValue',
29
'width' => '100px'
30
}, {
31
'name' => 'action',
32
'type' => 'combobox',
33
'ui_label' => 'Action Type',
34
'store_type' => 'arraystore',
35
'store_fields' => ['action'],
36
'store_data' => [['Read'], ['CreateUpdate'], ['Delete']],
37
'valueField' => 'action',
38
'value' => 'CreateUpdate',
39
editable: false,
40
'displayField' => 'action',
41
'mode' => 'local',
42
'autoWidth' => true
43
}]
44
end
45
46
def callback
47
content = {}
48
content['Result'] = @datastore['result']
49
save content
50
end
51
end
52
53