The Browser Exploitation Framework Project By by bcoles Archived: 2026-04-05 23:22:44 UTC "comment"># "comment"># Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net "comment"># Browser Exploitation Framework (BeEF) - https://beefproject.com "comment"># "keyword">class Fake_notification < BeEF::Core::Command "keyword">def self.options "keyword">return [ { 'name' => 'notification_text', 'description' => 'Text to display in fake notification', 'ui_label' => 'Notification Text', 'value' => 'Your session has expired. Please log in again.', 'width' => '400px' }, { 'name' => 'notification_type', 'description' => 'Type of notification to display', 'ui_label' => 'Notification Type', 'value' => 'security', 'type' => 'combobox', 'store' => ['security', 'update', 'error', 'info'] }, { 'name' => 'auto_close', 'description' => 'Auto-close notification after delay', https://beefproject.com/ Page 1 of 2 'ui_label' => 'Auto Close', 'value' => 'true', 'type' => 'checkbox' } ] "keyword">end "keyword">def post_soft_load "keyword">return "keyword">end "keyword">def pre_s"keyword">end BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind( '/#{@command_id}/notification.js', '/modules/social_engineering/fake_notification', 'notification.js' ) "keyword">end "keyword">def callback content = {} content['result'] = @datastore['result'] "keyword">if @datastore['result'] content['clicked'] = @datastore['clicked'] "keyword">if @datastore['clicked'] save content "keyword">end "keyword">end Source: https://beefproject.com/ https://beefproject.com/ Page 2 of 2