xssip 1 console.log(111); 2 $done(); 3 console.log(222); 4 $notification.post("test", "test"); 比如上面这段代码按正常的逻辑来说,执行$done()后,后面两行代码就不会执行了。 目前的情况是 , 执行1->2后,3没有执行反而4执行了,就成了 1->2->4,正常不应该是1->2就结束了吗?
SurgeTeam 受限于 JS 虚拟机,无法直接终止代码执行,所以 done() 后的代码依然会被执行,手动 return 即可。console.log 无效只是因为日志输出已被关闭。 另外的问题请给出问题截图。
xssip Events 15:17:48.114041 [MITM] MITM over HTTP/2 15:17:48.114110 [Script] HTTP request script found: test 15:18:00.010564 [test] 进程3 15:18:00.010579 [test] 15:17:57.303781 wating...进程1 15:18:00.010584 [test] 15:17:57.465582 wating...进程2 15:18:00.010589 [test] 15:17:57.764817 wating...进程3 15:18:00.010594 [test] 15:17:57.909354 wating...进程1 15:18:00.010599 [test] 15:17:58.081573 wating...进程2 15:18:00.010604 [test] 15:17:58.370506 wating...进程3 15:18:00.010609 [test] 15:17:58.525219 wating...进程1 15:18:00.010613 [test] 15:17:58.695923 wating...进程2 15:18:00.010617 [test] 15:17:58.986908 wating...进程3 15:18:00.010621 [test] 15:17:59.145474 wating...进程1 15:18:00.010626 [test] 15:17:59.317312 wating...进程2 15:18:00.010630 [test] 15:17:59.607241 wating...进程3 15:18:00.010634 [test] 15:17:59.766449 wating...进程1 15:18:00.010638 [test] 15:17:59.932720 wating...进程2 15:18:00.010643 [test] 15:18:00.004693 等待完成... 15:18:00.010647 [test] 15:18:00.004948 [Script Completed] 15:18:00.010652 [test] ---------------------------- 15:18:00.010656 [test] 15:18:00.008809 等待完成... 15:18:00.010661 [test] 15:18:00.008891 [Script Completed] 15:18:00.010665 [test] ---------------------------- 15:18:00.010669 [test] 15:18:00.010191 等待完成... 15:18:00.010673 [test] 15:18:00.010238 [Script Completed] 15:18:00.010677 [test] ---------------------------- 15:18:00.010682 [test] 15:18:00.011031 [Rule] Sub-rule matched: DOMAIN-SUFFIX cn(ChinaDomain.list)
xssip while (true) { await $.sleep(5); //setTimeout seconds = $.date().getSeconds(); if (seconds == 0 || seconds < 6) { console.log("等待完成..."); break; } if (rx % 100 == 0) { console.log("wating..." + "进程3"); //手动修改这里 } rx++; }
xssip google.js代码: !async function () { let rand = Math.random(); let i = 5; while (i > 0) { await sleep(2000).then(() => { console.log("当前:" + rand); }); i--; } $done({}); }() function sleep(milliseconds) { return new Promise(resolve => setTimeout(resolve, milliseconds)); }
xssip 触发方式 :curl https://www.google.com & curl https://www.google.com & curl https://www.google.com &