diff --git a/modules/browser/hooked_domain/remove_stuck_iframes/command.js b/modules/browser/hooked_domain/remove_stuck_iframes/command.js index bc1837fb2..d41b649bd 100644 --- a/modules/browser/hooked_domain/remove_stuck_iframes/command.js +++ b/modules/browser/hooked_domain/remove_stuck_iframes/command.js @@ -21,8 +21,7 @@ beef.execute(function() { var iframe_count = iframes.length; for(var i=0; i", <%= @command_id %>, 'iframe_result=iframe'+i+'_found'); - //iframes[i].parentNode.removeChild(iframes[i]); - document.body.removeChild(iframes[0]); + iframes[i].parentNode.removeChild(iframes[i]); beef.net.send("<%= @command_url %>", <%= @command_id %>, 'iframe_result=iframe'+i+'_removed'); } var iframe_ = "Info: "+ iframe_count +" iframe(s) processed";