Files
beef/modules/browser/hooked_origin/prompt_dialog/module.rb
2024-12-25 11:40:55 +10:00

23 lines
571 B
Ruby

#
# Copyright (c) 2006-2025 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - https://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Prompt_dialog < BeEF::Core::Command
def self.options
[
{ 'name' => 'question', 'description' => 'Prompt text', 'ui_label' => 'Prompt text' }
]
end
#
# This method is being called when a zombie sends some
# data back to the framework.
#
def post_execute
# return if @datastore['answer']==''
save({ 'answer' => @datastore['answer'] })
end
end