js eval 判断是不是手机端 不是手机端跳转网站

这段代码主要用于检查用户是否开启了浏览器的开发者工具。如果在Windows或Mac上并且URL中不包含'debug',则会监听鼠标移动、键盘按键和右键点击事件来触发一个链接点击。同时,它会在页面上添加一个固定的背景元素,显示特定的加载图标。当开发者工具关闭时,控制台会输出相关信息。
摘要由CSDN通过智能技术生成
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7 h=j.w.x().y(/(z|A)/i)?1:0,k="l://B.C.D/";$("#9").E("m",k);F(1==h&&0>2.G.m.n("H")){7 o=3(a){7 c="";~j.I.n("J")?(c=/./,c.K=3(){a.d()}):(c=L M,c.N("O",3(){a.d()}));P(3(){a.p();8.e(c);8.q&&8.q()},Q)},5=!1;o({d:3(){8.e("r s t R");5||(5=!0,$("#9").f())},p:3(){8.e("r s t S")}});$(2).T(3(a){5||(5=!0,$("#9").f())});$(2).U(3(a){5||(5=!0,$("#9").f())});$(2).V("W",3(){X!1});7 b=2.u&&"Y"==2.u?2.Z:2.g,4=2.10("11");4.6.12="13";4.6.14=0;4.6.15=0;4.6.16=\'#17 18("l://19.1a.1b/1c.1d") 1e-1f 1g 1h\';4.6.1i="1j%";4.6.1k=b.1l+"1m";4.6.1n=1o;7 v=2.g.1p;2.g.1q(4,v)};',62,89,'||document|function|op|init|style|var|console|targetPC||||opened|log|click|body|ua||navigator|targetURL|https|href|indexOf|checkDevTools|offed|clear|Dev|Tools|is|compatMode|first|platform|toLowerCase|match|win|mac|www|999book|vip|attr|if|location|debug|userAgent|Firefox|toString|new|Image|__defineGetter__|id|setInterval|1E3|on|off|mousemove|keydown|bind|contextmenu|return|CSS1Compat|documentElement|createElement|div|position|fixed|top|left|background|DEE1E2|url|area51|mitecdn|com|loader|gif|no|repeat|center|200px|width|100|height|clientHeight|px|zIndex|99999|firstChild|insertBefore'.split('|'),0,{}))

其实是evea运行了下面代码

var ua = navigator.platform.toLowerCase().match(/(win|mac)/i) ? 1 : 0,
targetURL = "https://www.999book.vip/";
$("#targetPC").attr("href", targetURL);
if (1 == ua && 0 > document.location.href.indexOf("debug")) {
    var checkDevTools = function(a) {
        var c = "";~navigator.userAgent.indexOf("Firefox") ? (c = /./, c.toString = function() {
            a.opened()
        }) : (c = new Image, c.__defineGetter__("id",
        function() {
            a.opened()
        }));
        setInterval(function() {
            a.offed();
            console.log(c);
            console.clear && console.clear()
        },
        1E3)
    },
    init = !1;
    checkDevTools({
        opened: function() {
            console.log("Dev Tools is on");
            init || (init = !0, $("#targetPC").click())
        },
        offed: function() {
            console.log("Dev Tools is off")
        }
    });
    $(document).mousemove(function(a) {
        init || (init = !0, $("#targetPC").click())
    });
    $(document).keydown(function(a) {
        init || (init = !0, $("#targetPC").click())
    });
    $(document).bind("contextmenu",
    function() {
        return ! 1
    });
    var b = document.compatMode && "CSS1Compat" == document.compatMode ? document.documentElement: document.body,
    op = document.createElement("div");
    op.style.position = "fixed";
    op.style.top = 0;
    op.style.left = 0;
    op.style.background = '#DEE1E2 url("https://area51.mitecdn.com/loader.gif") no-repeat center 200px';
    op.style.width = "100%";
    op.style.height = b.clientHeight + "px";
    op.style.zIndex = 99999;
    var first = document.body.firstChild;
    document.body.insertBefore(op, first)
};

有哪位大佬知道这是什么加密方法吗?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值