Path: blob/master/modules/social_engineering/pretty_theft/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Pretty_theft < BeEF::Core::Command6def self.options7@configuration = BeEF::Core::Configuration.instance8proto = @configuration.beef_proto9beef_host = @configuration.beef_host10beef_port = @configuration.beef_port11base_host = "#{proto}://#{beef_host}:#{beef_port}"12logo_uri = "#{base_host}/ui/media/images/beef.png"13[14{ 'name' => 'choice', 'type' => 'combobox', 'ui_label' => 'Dialog Type', 'store_type' => 'arraystore', 'store_fields' => ['choice'],15'store_data' => [['Facebook'], ['LinkedIn'], ['Windows'], ['YouTube'], ['Yammer'], ['IOS'], ['Generic']], 'valueField' => 'choice', 'value' => 'Facebook', editable: false, 'displayField' => 'choice', 'mode' => 'local', 'autoWidth' => true },1617{ 'name' => 'backing', 'type' => 'combobox', 'ui_label' => 'Backing', 'store_type' => 'arraystore', 'store_fields' => ['backing'], 'store_data' => [['Grey'], ['Clear']],18'valueField' => 'backing', 'value' => 'Grey', editable: false, 'displayField' => 'backing', 'mode' => 'local', 'autoWidth' => true },1920{ 'name' => 'imgsauce', 'description' => 'Custom Logo', 'ui_label' => 'Custom Logo (Generic only)', 'value' => logo_uri }21]22end2324#25# This method is being called when a zombie sends some26# data back to the framework.27#28def post_execute29save({ 'answer' => @datastore['answer'] })30end31end323334