From 0e8e07668f3485a3564b6104ebbbb752d48b6477 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sat, 23 Apr 2016 06:24:55 +0000 Subject: [PATCH] Use base64 for module inputs --- modules/social_engineering/fake_notification_c/command.js | 2 +- modules/social_engineering/fake_notification_ff/command.js | 2 +- modules/social_engineering/fake_notification_ie/command.js | 2 +- modules/social_engineering/fake_notification_ie/module.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/social_engineering/fake_notification_c/command.js b/modules/social_engineering/fake_notification_c/command.js index 77fc2ad28..fba43933b 100644 --- a/modules/social_engineering/fake_notification_c/command.js +++ b/modules/social_engineering/fake_notification_c/command.js @@ -17,7 +17,7 @@ beef.execute(function() { var hid = '#'+id; var hpid = '#'+pid; $j(hid).append(elp); - $j(hpid).html("<%= @notification_text %>"); + $j(hpid).html(decodeURIComponent(beef.encode.base64.decode('<%= Base64.encode64(@notification_text).delete("\n") %>'))); $j(hid).append(ell); $j(hid).append(elr); $j(hid).click(function() { diff --git a/modules/social_engineering/fake_notification_ff/command.js b/modules/social_engineering/fake_notification_ff/command.js index 8d2355e7d..160b8ffca 100644 --- a/modules/social_engineering/fake_notification_ff/command.js +++ b/modules/social_engineering/fake_notification_ff/command.js @@ -17,7 +17,7 @@ beef.execute(function() { var hid = '#'+id; var hpid = '#'+pid; $j(hid).append(elp); - $j(hpid).html("<%= @notification_text %> "); + $j(hpid).html(decodeURIComponent(beef.encode.base64.decode('<%= Base64.encode64(@notification_text).delete("\n") %>'))+" "); $j(hid).append(ell); //$j(hid).append("Problems installing? "); $j(hid).append(elr); diff --git a/modules/social_engineering/fake_notification_ie/command.js b/modules/social_engineering/fake_notification_ie/command.js index b89187b53..c8b528ffa 100644 --- a/modules/social_engineering/fake_notification_ie/command.js +++ b/modules/social_engineering/fake_notification_ie/command.js @@ -17,7 +17,7 @@ beef.execute(function() { var hid = '#'+id; var hpid = '#'+pid; $j(hid).append(elp); - $j(hpid).html('<%= @notification_text %>'); + $j(hpid).html(decodeURIComponent(beef.encode.base64.decode('<%= Base64.encode64(@notification_text).delete("\n") %>'))); $j(hid).append(ell); $j(hid).append(elr); $j(hid).click(function() { diff --git a/modules/social_engineering/fake_notification_ie/module.rb b/modules/social_engineering/fake_notification_ie/module.rb index 38ab294ca..d4f25359f 100644 --- a/modules/social_engineering/fake_notification_ie/module.rb +++ b/modules/social_engineering/fake_notification_ie/module.rb @@ -10,7 +10,7 @@ class Fake_notification_ie < BeEF::Core::Command { 'name' => 'notification_text', 'description' => 'Text displayed in the notification bar', 'ui_label' => 'Notification text', - '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" + '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" } ] end