Path: blob/master/modules/browser/hooked_origin/deface_web_page/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 Deface_web_page < 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}"1213favicon_uri = "#{base_host}/ui/media/images/favicon.ico"14[15{ 'name' => 'deface_title', 'description' => 'Page Title', 'ui_label' => 'New Title', 'value' => 'BeEF - The Browser Exploitation Framework Project',16'width' => '200px' },17{ 'name' => 'deface_favicon', 'description' => 'Shortcut Icon', 'ui_label' => 'New Favicon', 'value' => favicon_uri, 'width' => '200px' },18{ 'name' => 'deface_content', 'description' => 'Your defacement content', 'ui_label' => 'Deface Content', 'type' => 'textarea', 'value' => 'BeEF!', 'width' => '400px',19'height' => '100px' }20]21end2223def post_execute24content = {}25content['Result'] = @datastore['result']26save content27end28end293031