Path: blob/master/modules/phonegap/phonegap_prompt_user/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_prompt_user6#78class Phonegap_prompt_user < BeEF::Core::Command9def self.options10[{11'name' => 'title',12'description' => 'Prompt title',13'ui_label' => 'Title',14'value' => 'Apple ID',15'width' => '300px'1617}, {18'name' => 'question',19'description' => 'Prompt question',20'ui_label' => 'Question',21'value' => 'Please enter your Apple ID password',22'width' => '300px'23}, {24'name' => 'ans_yes',25'description' => 'Prompt positive answer button label',26'ui_label' => 'Yes',27'value' => 'Submit',28'width' => '100px'29}, {30'name' => 'ans_no',31'description' => 'Prompt negative answer button label',32'ui_label' => 'No',33'value' => 'Cancel',34'width' => '100px'35}, {36'name' => 'text',37'description' => 'Default text to display',38'ui_label' => 'Default text',39'value' => 'Password',40'width' => '100px'41}]42end4344def callback45content = {}46content['Result'] = @datastore['result']47save content48end49end505152