Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/social_engineering/pretty_theft/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 Pretty_theft < BeEF::Core::Command
7
def self.options
8
@configuration = BeEF::Core::Configuration.instance
9
proto = @configuration.beef_proto
10
beef_host = @configuration.beef_host
11
beef_port = @configuration.beef_port
12
base_host = "#{proto}://#{beef_host}:#{beef_port}"
13
logo_uri = "#{base_host}/ui/media/images/beef.png"
14
[
15
{ 'name' => 'choice', 'type' => 'combobox', 'ui_label' => 'Dialog Type', 'store_type' => 'arraystore', 'store_fields' => ['choice'],
16
'store_data' => [['Facebook'], ['LinkedIn'], ['Windows'], ['YouTube'], ['Yammer'], ['IOS'], ['Generic']], 'valueField' => 'choice', 'value' => 'Facebook', editable: false, 'displayField' => 'choice', 'mode' => 'local', 'autoWidth' => true },
17
18
{ 'name' => 'backing', 'type' => 'combobox', 'ui_label' => 'Backing', 'store_type' => 'arraystore', 'store_fields' => ['backing'], 'store_data' => [['Grey'], ['Clear']],
19
'valueField' => 'backing', 'value' => 'Grey', editable: false, 'displayField' => 'backing', 'mode' => 'local', 'autoWidth' => true },
20
21
{ 'name' => 'imgsauce', 'description' => 'Custom Logo', 'ui_label' => 'Custom Logo (Generic only)', 'value' => logo_uri }
22
]
23
end
24
25
#
26
# This method is being called when a zombie sends some
27
# data back to the framework.
28
#
29
def post_execute
30
save({ 'answer' => @datastore['answer'] })
31
end
32
end
33
34