1# 2# Copyright (c) 2006-2025 Wade Alcorn - [email protected] 3# Browser Exploitation Framework (BeEF) - https://beefproject.com 4# See the file 'doc/COPYING' for copying permission 5# 6class Prompt_dialog < BeEF::Core::Command 7 def self.options 8 [ 9 { 'name' => 'question', 'description' => 'Prompt text', 'ui_label' => 'Prompt text' } 10 ] 11 end 12 13 # 14 # This method is being called when a zombie sends some 15 # data back to the framework. 16 # 17 def post_execute 18 # return if @datastore['answer']=='' 19 20 save({ 'answer' => @datastore['answer'] }) 21 end 22end 23 24