git-svn-id: https://beef.googlecode.com/svn/trunk@908 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
34 lines
696 B
Ruby
34 lines
696 B
Ruby
class Prompt_dialog < BeEF::Core::Command
|
|
|
|
def initialize
|
|
super({
|
|
'Name' => 'Prompt Dialog',
|
|
'Description' => 'Sends a prompt dialog to the victim',
|
|
'Category' => 'Misc',
|
|
'Author' => 'bm',
|
|
'Data' => [
|
|
{'name' =>'question', 'ui_label'=>'Prompt text'}
|
|
],
|
|
'File' => __FILE__
|
|
})
|
|
|
|
set_target({
|
|
'verified_status' => VERIFIED_USER_NOTIFY,
|
|
'browser_name' => ALL
|
|
})
|
|
|
|
use_template!
|
|
end
|
|
|
|
#
|
|
# This method is being called when a zombie sends some
|
|
# data back to the framework.
|
|
#
|
|
def callback
|
|
|
|
# return if @datastore['answer']==''
|
|
|
|
save({'answer' => @datastore['answer']})
|
|
end
|
|
|
|
end |