Improved prompt module to include default text supported by Phonegap 2.8
This commit is contained in:
@@ -12,6 +12,8 @@ beef.execute(function() {
|
|||||||
var ans_yes = "<%== @ans_yes %>";
|
var ans_yes = "<%== @ans_yes %>";
|
||||||
var ans_no = "<%== @ans_no %>";
|
var ans_no = "<%== @ans_no %>";
|
||||||
var result = '';
|
var result = '';
|
||||||
|
var def_text = "<%== @text %>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function onPrompt(results) {
|
function onPrompt(results) {
|
||||||
@@ -23,7 +25,8 @@ beef.execute(function() {
|
|||||||
question,
|
question,
|
||||||
onPrompt,
|
onPrompt,
|
||||||
title,
|
title,
|
||||||
[ans_yes,ans_no]
|
[ans_yes,ans_no],
|
||||||
|
def_text
|
||||||
);
|
);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class Phonegap_prompt_user < BeEF::Core::Command
|
|||||||
'name' => 'question',
|
'name' => 'question',
|
||||||
'description' => 'Prompt question',
|
'description' => 'Prompt question',
|
||||||
'ui_label'=>'Question',
|
'ui_label'=>'Question',
|
||||||
'value' => 'Please enter your Apple ID',
|
'value' => 'Please enter your Apple ID password',
|
||||||
'width' => '300px'
|
'width' => '300px'
|
||||||
},{
|
},{
|
||||||
'name' => 'ans_yes',
|
'name' => 'ans_yes',
|
||||||
@@ -34,6 +34,12 @@ class Phonegap_prompt_user < BeEF::Core::Command
|
|||||||
'ui_label'=>'No',
|
'ui_label'=>'No',
|
||||||
'value' => 'Cancel',
|
'value' => 'Cancel',
|
||||||
'width' => '100px'
|
'width' => '100px'
|
||||||
|
},{
|
||||||
|
'name' => 'text',
|
||||||
|
'description' => 'Default text to display',
|
||||||
|
'ui_label'=>'Default text',
|
||||||
|
'value' => 'Password',
|
||||||
|
'width' => '100px'
|
||||||
}]
|
}]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user