Path: blob/master/modules/phonegap/phonegap_keychain/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5# Phonegap_keychain6#78class Phonegap_keychain < BeEF::Core::Command9def self.options10[{11'name' => 'servicename',12'description' => 'Service name',13'ui_label' => 'Service name',14'value' => 'ServiceNameTest',15'width' => '300px'1617}, {18'name' => 'key',19'description' => 'Key',20'ui_label' => 'Key',21'value' => 'TestKey',22'width' => '300px'23}, {24'name' => 'value',25'description' => 'Value',26'ui_label' => 'Value',27'value' => 'TestValue',28'width' => '100px'29}, {30'name' => 'action',31'type' => 'combobox',32'ui_label' => 'Action Type',33'store_type' => 'arraystore',34'store_fields' => ['action'],35'store_data' => [['Read'], ['CreateUpdate'], ['Delete']],36'valueField' => 'action',37'value' => 'CreateUpdate',38editable: false,39'displayField' => 'action',40'mode' => 'local',41'autoWidth' => true42}]43end4445def callback46content = {}47content['Result'] = @datastore['result']48save content49end50end515253