Path: blob/master/modules/social_engineering/fake_flash_update/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 Fake_flash_update < BeEF::Core::Command6def pre_send7BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/social_engineering/fake_flash_update/img/eng.png', '/adobe/flash_update', 'png')8end910def self.options11@configuration = BeEF::Core::Configuration.instance12proto = @configuration.beef_proto13beef_host = @configuration.beef_host14beef_port = @configuration.beef_port15base_host = "#{proto}://#{beef_host}:#{beef_port}"1617image = "#{base_host}/adobe/flash_update.png"1819[20{ 'name' => 'image', 'description' => 'Location of image for the update prompt', 'ui_label' => 'Image', 'value' => image },21{ 'name' => 'payload_uri', 'description' => 'Payload URI', 'ui_label' => 'Payload URI', 'value' => '' }22]23end2425def post_execute26content = {}27content['result'] = @datastore['result']28save content2930BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.unbind('/adobe/flash_update.png')31end32end333435