Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var SEP="|";var PAIR="=";function stripIllegalChars(c){var b="";c=c.toLowerCase();for(var a=0;a<c.length;a++){if(c.charAt(a)!="\n"&&c.charAt(a)!="/"&&c.charAt(a)!="\\"){b+=c.charAt(a)}else{if(c.charAt(a)=="\n"){b+="n"}}}return b}function stripFullPath(b,a){var e=b;var c=0;c=e.lastIndexOf(a);if(c<0){return b}var d=e.length;e=e.substring(c+a.length,d);return e}function Hashtable(){var d={__indexToValue:[],__indexToKeys:[]};var b=[];var e=0;var c=this;function a(g){var h=null;var f=0;while(typeof b[f]=="number"){f+=1}b[f]=0;this.hasNext=this.hasMoreElements=function(){if(b[f]<e){return true}else{if(typeof b[f]=="number"){b[f]=null}return false}};this.next=this.nextElement=function(){if(this.hasNext){h=b[f];return d[g][b[f]++]}else{return null}};this.remove=function(){if(typeof h=="number"){c.remove(d.__indexToKeys[h]);h=null}}}this.get=function(f){if(typeof d[f]=="number"){return d.__indexToValue[d[f]]}else{return null}};this.put=function(f,g){if(typeof d[f]=="number"){d.__indexToValue[d[f]]=g}else{d[f]=e;d.__indexToValue[e]=g;d.__indexToKeys[e++]=f}};this.remove=function(h){var f=d[h];if(typeof f=="number"){delete d[h];e-=1;for(var i=f;i<e;i++){d.__indexToValue[i]=d.__indexToValue[i+1];d[(d.__indexToKeys[i]=d.__indexToKeys[i+1])]=i}for(var g=0;g<b.length;g++){if((b[g])&&(f<b[g])){b[g]-=1}}}};this.size=function(){return e};this.__enumerate=function(f){return new a(f)};Hashtable.prototype.elements=function(){return this.__enumerate("__indexToValue")};Hashtable.prototype.keys=function(){return this.__enumerate("__indexToKeys")};Hashtable.prototype.clear=function(){var f=this.keys();while(f.hasNext()){this.remove(f.next())}};Hashtable.prototype.toString=function(){var h,g=this.keys();var f="";while(g.hasNext()){h=g.next();f+=h+" => "+this.get(h)+"\r\n"}return f};Hashtable.prototype.contains=function(f){var g=this.elements();while(g.hasNext()){if(g.next()==f){return true}}return false};Hashtable.prototype.containsValue=Hashtable.prototype.contains;Hashtable.prototype.containsKey=function(f){return(this.get(f)!==null)};Hashtable.prototype.isEmpty=function(){return(this.size()===0)};Hashtable.prototype.putAll=function(g){if(g.constructor==Hashtable){var h,f=g.keys();while(f.hasNext()){h=f.next();this.put(h,g.get(h))}}};Hashtable.prototype.clone=function(){var f=new Hashtable();f.putAll(this);return f};Hashtable.prototype.equals=function(f){return(f==this)}}Date.prototype.deviceprint_stdTimezoneOffset=function(){var a=new Date(this.getFullYear(),0,1);var b=new Date(this.getFullYear(),6,1);return Math.max(a.getTimezoneOffset(),b.getTimezoneOffset())};Date.prototype.deviceprint_dst=function(){return this.getTimezoneOffset()<this.deviceprint_stdTimezoneOffset()};function FingerPrint(){var a=new Hashtable();a.put("npnul32","def");a.put("npqtplugin6","qt6");a.put("npqtplugin5","qt5");a.put("npqtplugin4","qt4");a.put("npqtplugin3","qt3");a.put("npqtplugin2","qt2");a.put("npqtplugin","qt1");a.put("nppdf32","pdf");a.put("NPSWF32","swf");a.put("NPJava11","j11");a.put("NPJava12","j12");a.put("NPJava13","j13");a.put("NPJava32","j32");a.put("NPJava14","j14");a.put("npoji600","j61");a.put("NPJava131_16","j16");a.put("NPOFFICE","mso");a.put("npdsplay","wpm");a.put("npwmsdrm","drm");a.put("npdrmv2","drn");a.put("nprjplug","rjl");a.put("nppl3260","rpl");a.put("nprpjplug","rpv");a.put("npchime","chm");a.put("npCortona","cor");a.put("np32dsw","dsw");a.put("np32asw","asw");this.deviceprint_version=function(){return 1};this.deviceprint_browser=function(){var d=navigator.userAgent;var c=d.toLowerCase();var b=c+SEP+navigator.appVersion+SEP+navigator.platform;return b};this.deviceprint_software=function(){var h="";var b=true;if(navigator.plugins.length>0){var c="";var g="";var f="";var j="";for(var e=0;e<navigator.plugins.length;e++){j=navigator.plugins[e];g=j.filename;var d=g.indexOf(".");g=g.slice(0,d);if(b===true){f=a.containsKey(g);if(f){c+=a.get(g);b=false}else{c="";b=false}}else{f=a.containsKey(g);if(f){c+=SEP+a.get(g)}}}h=stripIllegalChars(c)}return h};this.deviceprint_display=function(){var b="";if(self.screen){b+=screen.colorDepth+SEP+screen.width+SEP+screen.height+SEP+screen.availHeight}return b};this.deviceprint_timezone=function(){var c=(new Date().getTimezoneOffset()/60)*(-1);var b=new Date();if(b.deviceprint_dst()){c--}else{}return c};this.deviceprint_language=function(){var b;if(typeof(navigator.language)!=="undefined"){b="lang"+PAIR+navigator.language+SEP}else{if(typeof(navigator.browserLanguage)!=="undefined"){b="lang"+PAIR+navigator.browserLanguage+SEP}else{b="lang"+PAIR+""+SEP}}if((typeof(navigator.systemLanguage)!=="undefined")){b+="syslang"+PAIR+navigator.systemLanguage+SEP}else{b+="syslang"+PAIR+""+SEP}if((typeof(navigator.userLanguage)!=="undefined")){b+="userlang"+PAIR+navigator.userLanguage}else{b+="userlang"+PAIR+""}return b};this.deviceprint_java=function(){var b=(navigator.javaEnabled())?1:0;return b};this.deviceprint_cookie=function(){var b=(navigator.cookieEnabled)?1:0;if(typeof navigator.cookieEnabled==="undefined"&&!b){document.cookie="testcookie";b=(document.cookie.indexOf("testcookie")!==-1)?1:0;document.cookie=""}return b}}function Mozilla_FingerPrint(){}Mozilla_FingerPrint.prototype=new FingerPrint();function Opera_FingerPrint(){}Opera_FingerPrint.prototype=new FingerPrint();function IE_FingerPrint(){var d=new Array("abk","wnt","aol","arb","chs","cht","dht","dhj","dan","dsh","heb","ie5","icw","ibe","iec","ieh","iee","jap","krn","lan","swf","shw","msn","wmp","obp","oex","net","pan","thi","tks","uni","vtc","vnm","mvm","vbs","wfd");var c=new Array("7790769C-0471-11D2-AF11-00C04FA35D02","89820200-ECBD-11CF-8B85-00AA005B4340","47F67D00-9E55-11D1-BAEF-00C04FC2D130","76C19B38-F0C8-11CF-87CC-0020AFEECF20","76C19B34-F0C8-11CF-87CC-0020AFEECF20","76C19B33-F0C8-11CF-87CC-0020AFEECF20","9381D8F2-0288-11D0-9501-00AA00B911A5","4F216970-C90C-11D1-B5C7-0000F8051515","283807B5-2C60-11D0-A31D-00AA00B92C03","44BBA848-CC51-11CF-AAFA-00AA00B6015C","76C19B36-F0C8-11CF-87CC-0020AFEECF20","89820200-ECBD-11CF-8B85-00AA005B4383","5A8D6EE0-3E18-11D0-821E-444553540000","630B1DA0-B465-11D1-9948-00C04F98BBC9","08B0E5C0-4FCB-11CF-AAA5-00401C608555","45EA75A0-A269-11D1-B5BF-0000F8051515","DE5AED00-A4BF-11D1-9948-00C04F98BBC9","76C19B30-F0C8-11CF-87CC-0020AFEECF20","76C19B31-F0C8-11CF-87CC-0020AFEECF20","76C19B50-F0C8-11CF-87CC-0020AFEECF20","D27CDB6E-AE6D-11CF-96B8-444553540000","2A202491-F00D-11CF-87CC-0020AFEECF20","5945C046-LE7D-LLDL-BC44-00C04FD912BE","22D6F312-B0F6-11D0-94AB-0080C74C7E95","3AF36230-A269-11D1-B5BF-0000F8051515","44BBA840-CC51-11CF-AAFA-00AA00B6015C","44BBA842-CC51-11CF-AAFA-00AA00B6015B","76C19B32-F0C8-11CF-87CC-0020AFEECF20","76C19B35-F0C8-11CF-87CC-0020AFEECF20","CC2A9BA0-3BDD-11D0-821E-444553540000","3BF42070-B3B1-11D1-B5C5-0000F8051515","10072CEC-8CC1-11D1-986E-00A0C955B42F","76C19B37-F0C8-11CF-87CC-0020AFEECF20","08B0E5C0-4FCB-11CF-AAA5-00401C608500","4F645220-306D-11D2-995D-00C04F98BBC9","73FA19D0-2D75-11D2-995D-00C04F98BBC9");this.activeXDetect=function a(e){var g=null;try{g=document.body.getComponentVersion("{"+e+"}","ComponentID")}catch(f){}return(g!==null)?g:false};this.deviceprint_browser=function(){var f=navigator.userAgent.toLowerCase();var e=f+SEP+navigator.appVersion+SEP+navigator.platform;e+=SEP+navigator.appMinorVersion+SEP+navigator.cpuClass+SEP+navigator.browserLanguage;e+=SEP+ScriptEngineBuildVersion();return e};this.deviceprint_software=function b(){var j="";var e=true;try{document.body.addBehavior("#default#clientCaps");var f;for(var h=0;h<c.length;h++){f=a(c[h]);var g=d[h];if(f){if(e===true){j+=g+PAIR+f;e=false}else{j+=SEP+g+PAIR+f}}else{j+="";e=false}}}catch(k){}return j}}IE_FingerPrint.prototype=new FingerPrint();var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome",id:1},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb",id:2},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version",id:3},{prop:window.opera,identity:"Opera",id:4},{string:navigator.vendor,subString:"iCab",identity:"iCab",id:5},{string:navigator.vendor,subString:"KDE",identity:"Konqueror",id:5},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox",id:6},{string:navigator.vendor,subString:"Camino",identity:"Camino",id:7},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape",id:8},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE",id:9},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv",id:10},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla",id:11}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};function form_add_data(b,a,c){if(b&&b.length>0){b+="&"}else{b=""}b+=a+"="+escape(c.toString());return b}function form_add_deviceprint(b,a,c){b=form_add_data(b,a+"d",c);return b}function add_deviceprint(){BrowserDetect.init();var a;switch(BrowserDetect.browser){case"Explorer":a=new IE_FingerPrint();break;case"Firefox":a=new Mozilla_FingerPrint();break;case"Opera":a=new Opera_FingerPrint();break;default:a=new FingerPrint()}var b="version="+a.deviceprint_version()+"&pm_fpua="+a.deviceprint_browser()+"&pm_fpsc="+a.deviceprint_display()+"&pm_fpsw="+a.deviceprint_software()+"&pm_fptz="+a.deviceprint_timezone()+"&pm_fpln="+a.deviceprint_language()+"&pm_fpjv="+a.deviceprint_java()+"&pm_fpco="+a.deviceprint_cookie();return b}function urlEncode(b){var a=encodeURIComponent(b).replace(/\~/g,"%7E").replace(/\!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\'/g,"%27").replace(/\-/g,"%2D").replace(/\_/g,"%5F").replace(/\./g,"%2E");return a}function encode_deviceprint(){var a=add_deviceprint();return urlEncode(a)}function decode_deviceprint(){var a=encode_deviceprint;return decodeURIComponent(urlEncode(a))}function post_deviceprint(){alert(encode_deviceprint());document.forms[0].pm_fp.value=encode_deviceprint();return true}function asyncpost_deviceprint(url){var xmlhttp=false;
- /* @cc_on @ */
- if(!xmlhttp&&typeof XMLHttpRequest!=="undefined"){xmlhttp=new XMLHttpRequest()}if(!xmlhttp){return false}xmlhttp.open("POST",url,true);xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var fd;fd=encode_deviceprint();xmlhttp.send(fd);return true};
Add Comment
Please, Sign In to add comment