Path: blob/master/modules/social_engineering/fake_notification/module.rb
1873 views
#1# Copyright (c) 2006-2026 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Fake_notification < BeEF::Core::Command6def self.options7[8{ 'name' => 'notification_text',9'description' => 'Text displayed in the notification bar',10'ui_label' => 'Notification text',11'value' => "This website wants to run the following applet: 'Java' from 'Microsoft Inc'. To continue using this website you must accept the following security popup" }12]13end1415#16# This method is being called when a zombie sends some17# data back to the framework.18#19def post_execute20content = {}21content['result'] = @datastore['result']22save content23end24end252627