Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/browser/hooked_origin/prompt_dialog/module.rb
1154 views
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
#
6
class 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
22
end
23
24