Jump to content

understand


hisoka

Recommended Posts

I would like to know something . Suppose you guys Foxy Mod or Davej or Justsomeguy you get in collision with a JavaScript code like this

 

<script>(window['gbar']=window['gbar']||{})._CONFIG=[[[0,"www.gstatic.com","og.og.en_US.v33lWnwpxt0.O","de","en","10",1,[3,2,".64.40.36.36.40.36.36.","r_qf.","17259,3700267,3700362","1425868183","0"],"40400","RWz_VKbMKKTmsATfo4CwCw",0,0,"og.og.ij2b4qzaxww8.L.F4.O","AItRSTN8GFqLVbAU-JQ1fqiN9QwYa05zIQ","AItRSTMd9SU6aax8NRjs5waGSvER69yA9w","",2,1,200,"DEU"],null,0,["m;/_/scs/abc-static/_/js/k=gapi.gapi.en.10h8gJPyU4U.O/m=__features__/am=AAI/rt=j/d=1/rs=AItRSTOJfKF0vWdZZ280FSybaPbIscsm2Q","https://apis.google.com","","","","","",1,"es_plusone_gc_20150220.0_p0","en],["1","gci_91f30755d6a6b787dcc2a4062e6e9824.js","googleapis.client:plusone:gapi.iframes","","en"],null,null,null,[0.009999999776482582,"de","10",[null,"","w",null,1,5184000,1,0],[["4076183","4061130","6",50,5,2592000,"",""],"https://www.google.com/intl/en/policies/technologies/cookies/",["#ffffff","#d9d9d9","#a0a0a0"],1,1],[["","","",0,0,-1]],[null,0,0],0,null,null,["5061492","google.(com|ru|ca|by|kz|com.mx)$",1]],null,[0,0,0,null,"","",""],[1,0.001000000047497451,1],[1,0.1000000014901161,2,1],[0,"",null,"",0,"There was an error loading your Marketplace apps.","You have no Marketplace apps.",0,[10,"https://books.google.de/bkshp?hl=enu0026tab=pp","Books","","-35px -1356px",null,0],0,0,1],[1],[0,0,["lg"],0,["lat"]],[["ld","gl","is","id","nb","nw","sb","sd","p","vd","awd","st","lod","eld","ip","dp","cpd","","","","","","",""],[""]],null,null,null,[30,152,1,750],null,null,null,null,null,[1,1]]];(window['gbar']=window['gbar']||{})._DPG=[{'_fdm_':['_r'],'aw':['sy16','sy29','sy7'],'awd':['st','sy10','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy31','sy33','sy34','sy38','sy39','sy46','sy47','sy48','sy6','sy7','sy8'],'base':['gi','sy10','sy11','sy12','sy13','sy14','sy15','sy16','sy21','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy6','sy7','sy8','sy9'],'bn':['sy6'],'bu':['sy29'],'cp':['_r'],'cpd':['sy10','sy11','sy12','sy13','sy14','sy15','sy24','sy7','sy8','sy9'],'d':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy31','sy32','sy33','sy34','sy35','sy36','sy37','sy38','sy39','sy40','sy41','sy42','sy43','sy44','sy6','sy7','sy8','sy9'],'dbg':['sy10','sy11','sy12','sy13','sy14','sy22','sy24','sy25','sy27','sy31','sy32','sy33','sy34','sy35','sy37','sy38','sy39','sy47','sy48','sy50','sy51','sy52','sy9'],'dd':['sy28','sy7'],'dp':['sy11','sy14','sy24','sy44'],'drt':['sy10','sy11','sy12','sy13','sy14','sy24','sy31','sy32','sy33','sy37','sy38','sy42','sy44','sy53','sy54','sy9'],'el':['sy10','sy21','sy22','sy29','sy55','sy7'],'eld':['sy10','sy11','sy12','sy14','sy7','sy8','sy9'],'eq':['sy16','sy7'],'gi':['_r'],'gl':['d','sy11','sy12','sy13','sy22','sy24','sy27','sy31','sy32','sy33','sy35','sy56','sy6','sy7'],'id':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy31','sy32','sy33','sy34','sy35','sy36','sy37','sy38','sy40','sy44','sy46','sy48','sy50','sy51','sy52','sy56','sy6','sy7','sy8','sy9'],'if':['_r'],'ip':['sy11','sy14','sy7'],'is':['d','sy24','sy29','sy40','sy41','sy56'],'iw':['sy16','sy29','sy7'],'jb':['sy10','sy11','sy12','sy13','sy14','sy24','sy31','sy32','sy33','sy37','sy38','sy42','sy44','sy53','sy54','sy9'],'ld':['_r'],'lo':['sy29'],'lod':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy29','sy6','sy7','sy8','sy9'],'nb':['d','sy10','sy11','sy12','sy14','sy22','sy24','sy25','sy33','sy35','sy6','sy7'],'ni':['sy16','sy29','sy7'],'nw':['is','nb','sy14','sy22','sy24','sy25','sy29','sy30','sy31','sy33','sy35','sy40','sy41','sy6','sy7'],'p':['awd','d','sy10','sy11','sy12','sy14','sy15','sy22','sy24','sy26','sy27','sy29','sy30','sy32','sy33','sy38','sy40','sy42','sy50','sy53','sy7','sy8'],'pi':['_r'],'sb':['is','sy24','sy29','sy30','sy40','sy41','sy7'],'sbi':['sy16','sy29','sy7'],'sd':['bn','d','sf','sy12','sy14','sy15','sy22','sy24','sy26','sy40','sy6'],'sf':['sy29'],'st':['sy11','sy31','sy37','sy42','sy43','sy7','sy9'],'sy10':['_r'],'sy11':['_r'],'sy12':['sy10','sy11','sy9'],'sy13':['sy12'],'sy14':['sy11'],'sy15':['sy13','sy8'],'sy16':['sy29','sy7'],'sy21':['sy22','sy7'],'sy22':['_r'],'sy24':['sy11','sy14'],'sy25':['sy11','sy24'],'sy26':['sy11','sy12','sy13','sy24','sy25'],'sy27':['sy11','sy24'],'sy28':['sy7'],'sy29':['_r'],'sy30':['sy11','sy12','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy6'],'sy31':['sy11'],'sy32':['sy14','sy31'],'sy33':['sy12'],'sy34':['_r'],'sy35':['sy13','sy24','sy27','sy33','sy34'],'sy36':['sy14','sy24','sy27','sy7'],'sy37':['sy11','sy9'],'sy38':['sy33','sy37'],'sy39':['sy38'],'sy40':['sy11','sy12','sy14','sy24','sy33','sy36','sy44','sy7'],'sy41':['sy24','sy29','sy31','sy36','sy7'],'sy42':['_r'],'sy43':['sy11','sy31','sy37','sy42'],'sy44':['sy14'],'sy46':['sy11','sy12','sy13','sy14','sy24','sy27','sy33','sy48'],'sy47':['sy11','sy12','sy14','sy27','sy33','sy39','sy48'],'sy48':['sy11','sy24','sy27'],'sy50':['sy11'],'sy51':['sy14','sy24','sy27','sy48'],'sy52':['sy11','sy12','sy33'],'sy53':['sy11','sy14','sy31','sy33','sy38','sy42','sy9'],'sy54':['sy11','sy12','sy13','sy14','sy33','sy38','sy53'],'sy55':['sy10','sy21','sy22','sy29','sy7'],'sy56':['sy37','sy40','sy6','sy7'],'sy6':['_r'],'sy7':['_r'],'sy8':['sy11','sy12','sy14','sy7'],'sy9':['_r'],'uc':['sy16','sy29','sy7'],'ucd':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy31','sy36','sy41','sy6','sy7','sy8','sy9'],'up':['sy10','sy11','sy12','sy13','sy14','sy15','sy21','sy22','sy24','sy25','sy26','sy27','sy29','sy33','sy52','sy55','sy6','sy7','sy8','sy9'],'vd':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy27','sy29','sy6','sy7','sy8','sy9'],'vi':['sy29']}];(window['gbar']=window['gbar']||{})._LDD=["bt","base","bn","bu","cp","el","lo","sbi","ni","sf","up","dd","aw","iw","if","gi","vi","pi","eq","uc"];this.gbar_=this.gbar_||{};(function(_){var window=this;try{var ga,ha;_.aa=_.aa||{};_.m=this;_.n=function(a){return void 0!==a};_.p=function(a,c){for(var d=a.split("."),e=c||_.m,f;f=d.shift();)if(null!=e[f])e=e[f];else return null;return e};_.ba=function(){};_.ca=function(a){a.L=function(){return a.Le?a.Le:a.Le=new a}};_.da=function(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==c&&"undefined"==typeof a.call)return"object";return c};_.ea=function(a){return"array"==_.da(a)};_.t=function(a){return"string"==typeof a};_.fa="closure_uid_"+(1E9*Math.random()>>>0);ga=function(a,c,d){return a.call.apply(a.bind,arguments)};ha=function(a,c,d){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return a.apply(c,d)}}return function(){return a.apply(c,arguments)}};_.u=function(a,c,d){_.u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ga:ha;return _.u.apply(null,arguments)};_.ia=Date.now||function(){return+new Date};_.v=function(a,c){var d=a.split("."),e=_.m;d[0]in e||!e.execScript||e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift())!d.length&&_.n©?e[f]=c:e[f]?e=e[f]:e=e[f]={}};_.w=function(a,c){function d(){}d.prototype=c.prototype;a.F=c.prototype;a.prototype=new d;a.prototype.constructor=a;a.oi=function(a,d,g){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return c.prototype[d].apply(a,h)}};var ja,ma,la;_.ka=function(a){var c="//www.google.com/gen_204?",c=c+a.d(2040-c.length);ja©};ja=function(a){var c=new window.Image,d=la;c.onerror=c.onload=c.onabort=function(){d in ma&&delete ma[d]};ma[la++]=c;c.src=a};ma=[];la=0;_.na=function(){this.data={}};_.na.prototype.b=function(){window.console&&window.console.log&&window.console.log("Log data: ",this.data)};_.na.prototype.d=function(a){var c=[],d;for(d in this.data)c.push((0,window.encodeURIComponent)(d)+"="+(0,window.encodeURIComponent)(String(this.data[d])));return("atyp=i&zx="+(new Date).getTime()+"&"+c.join("&")).substr(0,a)};_.oa=function(a){this.b=a};_.oa.prototype.log=function(a,c){try{if(this.A(a)){var d=this.k(a,c);this.d(d)}}catch(e){}};_.oa.prototype.d=function(a){this.b?a.b():_.ka(a)};_.pa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,_.pa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a))};_.w(_.pa,Error);_.pa.prototype.name="CustomError";_.qa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[sxa0]+|[sxa0]+$/g,"")};_.ra=Array.prototype;_.sa=_.ra.indexOf?function(a,c,d){return _.ra.indexOf.call(a,c,d)}:function(a,c,d){d=null==d?0:0>d?Math.max(0,a.length+d);if(_.t(a))return _.t©&&1==c.length?a.indexOf(c,d):-1;for(;d<a.length;d++)if(d in a&&a[d]===c)return d;return-1};_.ta=_.ra.forEach?function(a,c,d){_.ra.forEach.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=_.t(a)?a.split(""):a,g=0;g<e;g++)g in f&&c.call(d,f[g],g,a)};_.ua=_.ra.filter?function(a,c,d){return _.ra.filter.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=[],g=0,h=_.t(a)?a.split(""):a,l=0;l<e;l++)if(l in h){var q=h[l];c.call(d,q,l,a)&&(f[g++]=q)}return f};_.va=_.ra.map?function(a,c,d){return _.ra.map.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=Array(e),g=_.t(a)?a.split(""):a,h=0;h<e;h++)h in g&&(f[h]=c.call(d,g[h],h,a));return f};_.wa=_.ra.reduce?function(a,c,d,e){e&&(c=(0,_.u)(c,e));return _.ra.reduce.call(a,c,d)}:function(a,c,d,e){var f=d;(0,_.ta)(a,function(d,h){f=c.call(e,f,d,h,a)});return f};_.xa=_.ra.some?function(a,c,d){return _.ra.some.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=_.t(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return!0;return!1};_.ya=function(a,c){return 0<=(0,_.sa)(a,c)};var za;za="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Aa=function(a,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)a[d]=e[d];for(var g=0;g<za.length;g++)d=za[g],Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d])}};var Ha;_.Ba=function(){this.b={};this.d={}};_.ca(_.Ba);_.Da=function(a,c){a.L=function(){return _.Ca(_.Ba.L(),c)};a.Uh=function(){return _.Ba.L().b[c]||null}};_.y=function(a){return _.Ca(_.Ba.L(),a)};_.Fa=function(a,c){var d=_.Ba.L();if(a in d.{if(d.b[a]!=c)throw new Ea(a);}else{d.b[a]=c;var e=d.d[a];if(e)for(var f=0,g=e.length;f<g;f++)e[f].b(d.b,a);delete d.d[a]}};_.Ca=function(a,c){if(c in a.b)return a.b[c];throw new Ga©;};Ha=function(a){_.pa.call(this);this.aa=a};_.w(Ha,_.pa); var Ea=function(a){Ha.call(this,a)};_.w(Ea,Ha);var Ga=function(a){Ha.call(this,a)};_.w(Ga,Ha);_.Ia=/uffff/.test("uffff")?/["x00-x1fx7f-uffff]/g:/["x00-x1fx7f-xff]/g;_.z=function(){};_.A=function(a,c,d,e){a.b=null;c||(c=d?[d]:[]);a.A=d?String(d):void 0;a.o=0===d?-1:0;a.d=c;a:{if(a.d.length&&(c=a.d.length-1,(d=a.d[c])&&"object"==typeof d&&!_.ea(d))){a.w=c-a.o;a.k=d;break a}a.w=Number.MAX_VALUE}if(e)for(c=0;c<e.length;c++)d=e[c],d<a.w?(d+=a.o,a.d[d]=a.d[d]||_.Ja):a.k[d]=a.k[d]||_.Ja};_.Ja=[];_.C=function(a,c){if(c<a.w){var d=c+a.o,e=a.d[d];return e===_.Ja?a.d[d]=[]:e}e=a.k[c];return e===_.Ja?a.k[c]=[]:e}; _.D=function(a,c,d){a.b||(a.b={});if(!a.b[d]){var e=_.C(a,d);e&&(a.b[d]=new c(e))}return a.b[d]};_.z.prototype.ab=function(){return this.d};_.z.prototype.toString=function(){return this.d.toString()};_.Ka=function(a){_.A(this,a,0,null)};_.w(_.Ka,_.z);_.E=function(a,c){return null!=a?a:!!c};_.F=function(a){var c;void 0==c&&(c="");return null!=a?a:c};_.G=function(a,c){void 0==c&&(c=0);return null!=a?a:c};_.Na=function(a,c){this.data={};var d=_.D(a,_.Ka,8)||new _.Ka;this.data.ei=_.F(_.La(a));this.data.ogf=_.F(_.C(d,3));var e;e=window.google&&window.google.sn?/.*hp$/.test(window.google.sn)?!1:!0:_.E(_.C(a,7));this.data.ogrp=e?"1":"";this.data.ogv=_.F(_.C(d,6))+"."+_.F(_.C(d,7));this.data.ogd=_.F(_.C(a,21));this.data.ogc=_.F(_.C(a,20));this.data.ogl=_.F(_.Ma(a));c&&(this.data.oggv=c)};_.w(_.Na,_.na);_.Oa=function(a,c,d,e,f){_.Na.call(this,a,c);_.Aa(this.data,{jexpid:_.F(_.C(a,9)),srcpg:"prop="+_.F(_.C(a,6)),jsr:Math.round(1/e),emsg:d.name+":"+d.message});if(f){f._sn&&(f._sn="og."+f._sn);for(var g in f)this.data[(0,window.encodeURIComponent)(g)]=f[g]}};_.w(_.Oa,_.Na);var Pa=function(a){_.A(this,a,0,null)};_.w(Pa,_.z);_.Ma=function(a){return _.C(a,5)};_.La=function(a){return _.C(a,10)};_.H=function(){this.ba=this.ba;this.Na=this.Na};_.H.prototype.ba=!1;_.H.prototype.Y=function(){this.ba||(this.ba=!0,this.M())};_.H.prototype.M=function(){if(this.Na)for(;this.Na.length;)this.Na.shift()()};_.Qa=function(a){_.A(this,a,0,null)};_.w(_.Qa,_.z);_.Ra=function(a){return null!=_.C(a,2)?_.C(a,2):.001};var Sa,Ua,Va,Xa;_.Ta=function(a,c,d,e,f,g){_.H.call(this);this.G=c;this.J=f;this.o=g;this.S=!1;this.k={"":!0};this.H={"":!0};this.A=[];this.w=[];this.R=["//"+_.F(_.C(a,2)),"og/_/js","k=+_.F(_.C(a,3)),"rt=j];this.O=""==_.F(_.C(a,14))?null:_.C(a,14);this.K=["//"+_.F(_.C(a,2)),"og/_/ss","k="+_.F(_.C(a,13))];this.C=""==_.F(_.C(a,15))?null:_.C(a,15);this.U=_.E(_.C(a,1))?"?host=www.gstatic.com&bust="+_.F(_.C(a,16)):"";this.T=_.E(_.C(a,1))?"?host=www.gstatic.com&bust="+1E11*Math.random():"";this.d=d;_.C(a,19);a=null!=_.C(a,17)?_.C(a,17):1;this.b=_.G(a,1);a=0;for(c=e[a];a<e.length;a++,c=e[a])Sa(this,c,!0)};_.w(_.Ta,_.H);_.Da(_.Ta,"m");Sa=function(a,c,d){if(!a.k[c]&&(a.k[c]=!0,d&&a.d[c]))for(var e=0;e<a.d[c].length;e++)Sa(a,a.d[c][e],d)};Ua=function(a,c){for(var d=[],e=0;e<c.length;e++){var f=c[e];if(!a.k[f]){var g=a.d[f];g&&(g=Ua(a,g),d=d.concat(g));d.push(f);a.k[f]=!0}}return d};_.Wa=function(a,c,d){c=Ua(a,c);0<c.length&&(c=a.R.join("/")+"/"+("m="+c.join(",")),a.O&&(c+="/rs="+a.O),c=c+a.U,Va(a,c,(0,_.u)(a.P,a,d)),a.A.push©)};_.Ta.prototype.P=function(a){_.y("api").Va();for(var c=0;c<this.w.length;c++)this.w[c].call(null);a&&a.call(null)};Va=function(a,c,d,e){var f=window.document.createElement("SCRIPT");f.async=!0;f.type="text/javascript";f.charset="UTF-8";f.src=c;var g=!0,h=e||1;e=(0,_.u)(function(){g=!1;this.o.log(47,{att:h,max:a.b,url:c});h<a.b?Va(a,c,d,h+1):this.J.log(Error("f`"+h+"`"+a.,{url:c})},a);var l=(0,_.u)(function(){g&&(this.o.log(46,{att:h,max:a.b,url:c}),g=!1,d&&d.call(null))},a),q=function(a){"loaded"==a.readyState||"complete"==a.readyState?l():g&&window.setTimeout(function(){q(a)},100)};"undefined"!==typeof f.addEventListener?f.onload=function(){l()}:f.onreadystatechange=function(){f.onreadystatechange=null;q(f)};f.onerror=e;a.o.log(45,{att:h,max:a.b,url:c});window.document.getElementsByTagName("HEAD")[0].appendChild(f)};_.Ya=function(a,c,d){for(var e=[],f=0,g=c[f];f<c.length;f++,g=c[f])a.H[g]||(e.push(g),a.H[g]=!0);0<e.length&&(c=a.K.join("/")+"/"+("m="+e.join(",")),a.C&&(c+="/rs="+a.C),c+=a.T,Xa(c,d))};Xa=function(a,c){var d=window.document.createElement("LINK");d.setAttribute("rel","stylesheet");d.setAttribute("type","text/css");d.setAttribute("href",a);d.onload=d.onreadystatechange=function(){d.readyState&&"loaded"!=d.readyState&&"complete"!=d.readyState||c&&c.call(null)};window.document.getElementsByTagName("HEAD")[0].appendChild(d)};_.Ta.prototype.B=function(a){this.S||(void 0!=a?window.setTimeout((0,_.u)(this.B,this,void 0),a)_.Wa(this,_.C(this.G,1),(0,_.u)(this.Q,this)),_.Ya(this,_.C(this.G,2)),this.S=!0))};_.Ta.prototype.Q=function(){_.v("gbar.qm",(0,_.u)(function(a){try{a()}catch©{this.J.log©}},this))};_.Za=function(a){_.A(this,a,0,null)};_.w(_.Za,_.z);var $a=function(a){_.A(this,a,0,null)};_.w($a,_.z);_.bb=function(){var a=_.ab();return _.C(a,9)};_.cb=function(a){_.A(this,a,0,null)};_.w(_.cb,_.z);_.db=function(a){_.A(this,a,0,null)};_.w(_.db,_.z);_.db.prototype.Ra=function(){return _.C(this,6)};var eb=function(a){_.A(this,a,0,null)};_.w(eb,_.z);eb.prototype.yc=function(){return _.D(this,_.Za,14)};_.fb=function(){var a=_.I(_.J.L());return _.D(a,_.db,6)};_.gb=function(){var a=_.I(_.J.L());return _.D(a,_.Qa,13)};_.hb=function(){var a=_.I(_.J.L());return _.D(a,_.cb,5)};var ib=new eb(window.gbar&&window.gbar._CONFIG?window.gbar._CONFIG[0]:[[,,,,,,,[]],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]),jb;jb=_.C(ib,3);_.kb=_.E(jb);_.K=function(){};_.v("gbar_._DumpException",function(a){if(_.kb)throw a;_.K(a)});var mb;mb=function(){this.d=!1;this.b=[]};_.ob=function(a){var c=_.nb;c.d?a():c.b.push(a)};mb.prototype.k=function(a){if(!this.d){this.d=!0;for(var c=0;c<this.b.length;c++)try{this.b[c]()}catch(d){a(d)}this.b=null;try{_.y("api").Va()}catch(e){}}};_.nb=new mb;_.J=function(){_.H.call(this);this.b=ib};_.w(_.J,_.H);_.Da(_.J,"cs");_.I=function(a){return a.b};_.pb=function(){var a=_.I(_.J.L());return _.D(a,Pa,1)||new Pa};_.ab=function(){var a=_.I(_.J.L());return _.D(a,$a,4)||new $a};_.Fa("cs",new _.J);}catch(e){_._DumpException(e)}try{_.v("gbar.ldb",(0,_.u)(_.nb.k,_.nb));}catch(e){_._DumpException(e)}try{var Mb=function(){_.H.call(this);this.ie=[];this.kd=[]};_.w(Mb,_.H);Mb.prototype.b=function(a,c){this.ie.push({vc:a,options:c})};Mb.prototype.init=function(){window.gapi={};var a=_.ab(),c=window.___jsl={};c.h=_.F(_.C(a,1));c.ms=_.F(_.C(a,2));c.m=_.F(_.C(a,3));c.l=[];a=_.hb()||new _.cb;_.C(a,1)&&(a=_.C(a,3))&&this.kd.push(a);a=_.fb()||new _.db;_.C(a,1)&&(a=_.C(a,2))&&this.kd.push(a);_.v("gapi.load",(0,_.u)(this.b,this));return this};var Nb=window,Ob,Pb=_.ab();Ob=_.C(Pb,7);Nb.__PVT=_.F(Ob);_.Fa("gs",(new Mb).init());}catch(e){_._DumpException(e)}try{var sb,tb,ub,Bb;_.qb=function(a){_.A(this,a,0,null)};_.w(_.qb,_.z);_.rb=function(){var a=_.I(_.J.L());return _.D(a,_.qb,11)};sb=function(a){return null!=_.C(a,3)?_.C(a,3):1};tb=function(a){return null!=_.C(a,2)?_.C(a,2):1E-4};ub=function(a){_.A(this,a,0,null)};_.w(ub,_.z);var vb=null,wb=function(a){return(a+"").replace(".","%2E").replace(",","%2C")},xb=[1,2,3,4,5,6,9,10,11,13,14,28,29,30,34,35,37,38,39,40,41,42,43,48,49,50,51,52,53,500],yb=function(a){if(!vb){vb={};for(var c=0;c<xb.length;c++)vb[xb[c]]=!0}return!!vb[a]},zb=function(a,c,d,e,f,g){_.Na.call(this,a,c);_.Aa(this.data,{oge:e,ogex:_.F(_.C(a,9)),ogp:_.F(_.C(a,6)),ogsr:Math.round(1/(yb(e)?_.G(sb(d)):_.G(tb(d)))),ogus:f});if(g){"ogw"in g&&(this.data.ogw=g.ogw,delete g.ogw);"ved"in g&&(this.data.ved=g.ved,delete g.ved);a=[];for(var h in g)0!=a.length&&a.push(","),a.push(wb(h)),a.push("."),a.push(wb(g[h]));g=a.join("");""!=g&&(this.data.ogad=g)}};_.w(zb,_.Na);var Ab=function(a,c,d,e,f){this.b=f;this.G=a;this.O=c;this.ba=e;this.C=_.G(tb(a),1E-4);this.w=_.G(sb(a),1);c=Math.random();this.B=_.E(_.C(a,1))&&c<this.C;this.o=_.E(_.C(a,1))&&c<this.w;a=0;_.E(_.C(d,1))&&(a|=1);_.E(_.C(d,2))&&(a|=2);_.E(_.C(d,3))&&(a|=4);this.J=a};_.w(Ab,_.oa);Ab.prototype.A=function(a){return this.b||(yb(a)?this.o:this.};Ab.prototype.k=function(a,c){return new zb(this.O,this.ba,this.G,a,this.J,c)};Bb=null;_.Cb=function(){if(!Bb){var a=_.I(_.J.L()),a=_.D(a,ub,12)||new ub,c=_.pb(),d=_.rb()||new _.qb,e=_.bb();Bb=new Ab(a,c,d,e,_.kb)}return Bb};_.L=function(a,c){_.Cb().log(a,c)};_.L(8,{m:"BackCompat"==window.document.compatMode?"q":"s"});}catch(e){_._DumpException(e)}try{var Qb=function(a,c,d,e){this.b=e;this.G=c;this.ba=d;this.w=_.G(_.Ra(a),.001);this.O=_.E(_.C(a,1))&&Math.random()<this.w;c=null!=_.C(a,3)?_.C(a,3):1;this.B=_.G(c,1);this.o=0;a=null!=_.C(a,4)?_.C(a,4):!0;this.C=_.E(a,!0)},Rb;_.w(Qb,_.oa);Qb.prototype.log=function(a,c){Qb.F.log.call(this,a,c);if(this.b&&this.C)throw a;};Qb.prototype.A=function(){return this.b||this.O&&this.o<this.B};Qb.prototype.k=function(a,c){try{return _.Ca(_.Ba.L(),"lm").yf(a,c)}catch(d){return new _.Oa(this.G,this.ba,a,this.w,c)}};Qb.prototype.d=function(a){Qb.F.d.call(this,a);this.o++};Rb=null;_.Sb=function(){if(!Rb){var a=_.gb()||new _.Qa,c=_.pb(),d=_.bb();Rb=new Qb(a,c,d,_.kb)}return Rb};_.K=function(a,c){_.Sb().log(a,c)};}catch(e){_._DumpException(e)}try{_.Tb=function(a){_.Tb[" "](a);return a};_.Tb[" "]=_.ba;}catch(e){_._DumpException(e)}try{var Ub,ac;Ub=function(a,c){return a<c?-1:a>c?1:0};_.Vb=function(a,c,d){for(var e in a)c.call(d,a[e],e,a)};_.Wb=function(a,c){for(var d=0,e=(0,_.qa)(String(a)).split("."),f=(0,_.qa)(String©).split("."),g=Math.max(e.length,f.length),h=0;0==d&&h<g;h++){var l=e[h]||"",q=f[h]||"",r=RegExp("(d*)(D*)","g"),x=RegExp("(d*)(D*)","g");do{var B=r.exec(l)||["","",""],O=x.exec(q)||["","",""];if(0==B[0].length&&0==O[0].length)break;d=Ub(0==B[1].length?0:(0,window.parseInt)(B[1],10),0==O[1].length?0:(0,window.parseInt)(O[1],10))||Ub(0==B[2].length,0==O[2].length)||Ub(B[2],O[2])}while(0==d)}return d};_.Xb=function(a){var c=typeof a;return"object"==c&&null!=a||"function"==c};_.Zb=function(a){return"function"==_.da(a)};_.$b=function(a){return"number"==typeof a};a:{var bc=_.m.navigator;if(bc){var cc=bc.userAgent;if(cc){ac=cc;break a}}ac=""}_.dc=function(a){return-1!=ac.indexOf(a)};_.ec=function(){return _.dc("Opera")||_.dc("OPR")};_.fc=function(){return _.dc("Edge")||_.dc("Trident")||_.dc("MSIE")};var gc=function(){return _.dc("Edge")};_.hc=function(){return _.dc("iPhone")&&!_.dc("iPod")&&!_.dc("iPad")};var mc,rc,sc,uc,yc,zc,wc;_.ic=_.ec();_.M=_.fc();_.jc=_.dc("Gecko")&&!(-1!=ac.toLowerCase().indexOf("webkit")&&!gc())&&!(_.dc("Trident")||_.dc("MSIE"))&&!gc();_.kc=-1!=ac.toLowerCase().indexOf("webkit")&&!gc();_.lc=_.kc&&_.dc("Mobile");mc=_.m.navigator||null;_.nc=mc&&mc.platform||"";_.oc=_.dc("Macintosh");_.pc=_.dc("Windows");_.qc=_.dc("Linux")||_.dc("CrOS");rc=function(){var a=ac;if(_.jc)return/rv[^);]+)()|;)/.exec(a);if(_.M&&gc())return/Edge/([d.]+)/.exec(a);if(_.M)return/b(?:MSIE|rv)[: ]([^);]+)()|;)/.exec(a);if(_.kc)return/WebKit/(S+)/.exec(a)};sc=function(){var a=_.m.document;return a?a.documentMode:void 0};_.tc=function(){if(_.ic&&_.m.opera){var a=_.m.opera.version;return _.Zb(a)?a():a}var a="",c=rc();c&&(a=c?c[1]:"");return _.M&&!gc()&&(c=sc(),c>(0,window.parseFloat)(a))?String©:a}();uc={}; _.vc=function(a){return uc[a]||(uc[a]=0<=_.Wb(_.tc,a))};_.xc=function(a){return _.M&&(gc()||wc>=a)};yc=_.m.document;zc=sc();wc=!yc||!_.M||!zc&&gc()?void 0:zc||("CSS1Compat"==yc.compatMode?(0,window.parseInt)(_.tc,10):5);}catch(e){_._DumpException(e)}try{var Dc,Ec;_.Ac=function(a,c){try{return _.Tb(a[c]),!0}catch(d){}return!1};_.Bc=function(a,c){var d=(0,_.sa)(a,c),e;(e=0<=d)&&_.ra.splice.call(a,d,1);return e};_.Cc=!_.M||_.xc(9);Dc=!_.M||_.xc(9);Ec=_.M&&!_.vc("9");!_.kc||_.vc("528");_.jc&&_.vc("1.9b")||_.M&&_.vc("8")||_.ic&&_.vc("9.5")||_.kc&&_.vc("528");_.jc&&!_.vc("8")||_.M&&_.vc("9");_.Fc=function(a,c){this.type=a;this.k=this.target=c;this.A=!1;this.$e=!0};_.Fc.prototype.stopPropagation=function(){this.A=!0};_.Fc.prototype.preventDefault=function(){this.$e=!1};_.Gc=_.M?"focusin":"DOMFocusIn";_.Hc=_.kc?"webkitTransitionEnd":_.ic?"otransitionend":"transitionend";_.Ic=function(a,c){_.Fc.call(this,a?a.type:"");this.o=this.k=this.target=null;this.B=this.keyCode=this.button=this.clientY=this.clientX=0;this.G=this.C=this.d=this.w=!1;this.b=this.state=null;a&&this.init(a,c)};_.w(_.Ic,_.Fc);_.Ic.prototype.init=function(a,c){var d=this.type=a.type;this.target=a.target||a.srcElement;this.k=c;var e=a.relatedTarget;e?_.jc&&(_.Ac(e,"nodeName")||(e=null)):"mouseover"==d?e=a.fromElement:"mouseout"==d&&(e=a.toElement);this.o=e;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.button=a.button;this.keyCode=a.keyCode||0;this.B=a.charCode||("keypress"==d?a.keyCode:0);this.w=a.ctrlKey;this.d=a.altKey;this.C=a.shiftKey;this.G=a.metaKey;this.state=a.state;this.b=a;a.defaultPrevented&&this.preventDefault()};_.Ic.prototype.stopPropagation=function(){_.Ic.F.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};_.Ic.prototype.preventDefault=function(){_.Ic.F.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Ec)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch©{}};_.Ic.prototype.ba=function(){return this.b};var Mc;_.Jc="closure_listenable_"+(1E6*Math.random()|0);_.Kc=function(a){return!(!a||!a[_.Jc])};Mc=0;var Nc;Nc=function(a,c,d,e,f){this.ub=a;this.b=null;this.src=c;this.type=d;this.nc=!!e;this.Jc=f;this.key=++Mc;this.Jb=this.mc=!1};_.Oc=function(a){a.Jb=!0;a.ub=null;a.b=null;a.src=null;a.Jc=null};_.Pc=function(a){this.src=a;this.b={};this.d=0};_.Pc.prototype.add=function(a,c,d,e,f){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.d++);var h=_.Qc(a,c,e,f);-1<h?(c=a[h],d||(c.mc=!1)):(c=new Nc(c,this.src,g,!!e,f),c.mc=d,a.push©);return c};_.Pc.prototype.remove=function(a,c,d,e){a=a.toString();if(!(a in this.)return!1;var f=this.b[a];c=_.Qc(f,c,d,e);return-1<c?(_.Oc(f[c]),_.ra.splice.call(f,c,1),0==f.length&&(delete this.b[a],this.d--),!0):!1};_.Rc=function(a,c){var d=c.type;if(!(d in a.)return!1;var e=_.Bc(a.b[d],c);e&&(_.Oc©,0==a.b[d].length&&(delete a.b[d],a.d--));return e};_.Qc=function(a,c,d,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.Jb&&g.ub==c&&g.nc==!!d&&g.Jc==e)return f}return-1};var Sc,Tc,Uc,Yc,Zc,cd,bd,$c,dd;Sc="closure_lm_"+(1E6*Math.random()|0);Tc={};Uc=0;_.N=function(a,c,d,e,f){if(_.ea©){for(var g=0;g<c.length;g++)_.N(a,c[g],d,e,f);return null}d=_.Vc(d);return _.Kc(a)?a.Sa(c,d,e,f):_.Wc(a,c,d,!1,e,f)};_.Wc=function(a,c,d,e,f,g){if(!c)throw Error("g");var h=!!f,l=_.Xc(a);l||(a[sc]=l=new _.Pc(a));d=l.add(c,d,e,f,g);if(d.b)return d;e=Yc();d.b=e;e.src=a;e.ub=d;a.addEventListener?a.addEventListener(c.toString(),e,h):a.attachEvent(Zc(c.toString()),e);Uc++;return d};Yc=function(){var a=$c,c=Dc?function(d){return a.call(c.src,c.ub,d)}:function(d){d=a.call(c.src,c.ub,d);if(!d)return d};return c};_.ad=function(a){if(_.$b(a)||!a||a.Jb)return!1;var c=a.src;if(_.Kc©)return c.kc(a);var d=a.type,e=a.b;c.removeEventListener?c.removeEventListener(d,e,a.nc):c.detachEvent&&c.detachEvent(Zc(d),e);Uc--;(d=_.Xc©)?(_.Rc(d,a),0==d.d&&(d.src=null,c[sc]=null)):_.Oc(a);return!0};Zc=function(a){return a in Tc?Tc[a]:Tc[a]="on"+a};cd=function(a,c,d,e){var f=!0;if(a=_.Xc(a))if(c=a.b[c.toString()])for(c=c.concat(),a=0;a<c.length;a++){var g=c[a];g&&g.nc==d&&!g.Jb&&(g=bd(g,e),f=f&&!1!==g)}return f};bd=function(a,c){var d=a.ub,e=a.Jc||a.src;a.mc&&_.ad(a);return d.call(e,c)};$c=function(a,c){if(a.Jb)return!0;if(!Dc){var d=c||_.p("window.event"),e=new _.Ic(d,this),f=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var g=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==d.returnValue)d.returnValue=!0}d=[];for(g=e.k;g;g=g.parentNode)d.push(g);for(var g=a.type,l=d.length-1;!e.A&&0<=l;l--){e.k=d[l];var q=cd(d[l],g,!0,e),f=f&&q}for(l=0;!e.A&&l<d.length;l++)e.k=d[l],q=cd(d[l],g,!1,e),f=f&&q}return f}return bd(a,new _.Ic(c,this))}; _.Xc=function(a){a=a[sc];return a instanceof _.Pc?a:null};dd="__closure_events_fn_"+(1E9*Math.random()>>>0);_.Vc=function(a){if(_.Zb(a))return a;a[dd]||(a[dd]=function©{return a.handleEvent©});return a[dd]};}catch(e){_._DumpException(e)}try{var ed,fd;ed=function(a){var c=arguments.length;if(1==c&&_.ea(arguments[0]))return ed.apply(null,arguments[0]);for(var d={},e=0;e<c;e++)d[arguments[e]]=!0;return d};fd=function(a){var c=[],d=0,e;for(e in a)c[d++]=e;return c};_.gd=function(a){var c=[],d=0,e;for(e in a)c[d++]=a[e];return c};_.hd=function(a){var c=a.length;if(0<c){for(var d=Array©,e=0;e<c;e++)d[e]=a[e];return d}return[]};_.id=function(a){var c=_.da(a);return"array"==c||"object"==c&&"number"==typeof a.length};_.jd=ed("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));_.ld=function(){this.b="";this.d=_.kd};_.ld.prototype.tb=!0;_.kd={};_.ld.prototype.jb=function(){return this.b};_.md=function(a){var c=new _.ld;c.b=a;return c};_.nd=_.md("");_.pd=function(){this.b="";this.k=_.od;this.d=null};_.pd.prototype.Dd=!0;_.pd.prototype.Xb=function(){return this.d};_.pd.prototype.tb=!0;_.pd.prototype.jb=function(){return this.b};_.od={};_.qd=function(a,c){var d=new _.pd;d.b=a;d.d=c;return d};_.rd=_.qd("",0);_.sd=function(a,c,d){return Math.min(Math.max(a,c),d)};_.td="StopIteration"in _.m?_.m.StopIteration:Error("v");_.ud=function(){};_.ud.prototype.next=function(){throw _.td;};_.ud.prototype.Ob=function(){return this};_.vd=function(a,c){this.d={};this.b=[];this.o=this.k=0;var d=arguments.length;if(1<d){if(d%2)throw Error("b");for(var e=0;e<d;e+=2)this.set(arguments[e],arguments[e+1])}else if(a){"undefined"!=typeof _.vd&&a instanceof _.vd?(d=a.Ia(),e=a.Ja()):(d=fd(a),e=_.gd(a));for(var f=0;f<d.length;f++)this.set(d[f],e[f])}};_.k=_.vd.prototype;_.k.Ja=function(){wd(this);for(var a=[],c=0;c<this.b.length;c++)a.push(this.d[this.b[c]]);return a};_.k.Ia=function(){wd(this);return this.b.concat()};_.k.fc=function(){return 0==this.k};_.k.clear=function(){this.d={};this.o=this.k=this.b.length=0};_.k.remove=function(a){return _.(this.d,a)?(delete this.d[a],this.k--,this.o++,this.b.length>2*this.k&&wd(this),!0):!1};var wd=function(a){if(a.k!=a.b.length){for(var c=0,d=0;c<a.b.length;){var e=a.b[c];_.(a.d,e)&&(a.b[d++]=e);c++}a.b.length=d}if(a.k!=a.b.length){for(var f={},d=c=0;c<a.b.length;)e=a.b[c],_.(f,e)||(a.b[d++]=e,f[e]=1),c++;a.b.length=d}};_.k=_.vd.prototype;_.k.get=function(a,c){return _.(this.d,a)?this.d[a]:c};_.k.set=function(a,c){_.(this.d,a)||(this.k++,this.b.push(a),this.o++);this.d[a]=c};_.k.forEach=function(a,c){for(var d=this.Ia(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);a.call(c,g,f,this)}};_.k.clone=function(){return new _.vd(this)};_.k.Ob=function(a){wd(this);var c=0,d=this.b,e=this.d,f=this.o,g=this,h=new _.ud;h.next=function(){for(;{if(f!=g.o)throw Error("x");if(c>=d.length)throw _.td;var h=d[c++];return a?h:e[h]}};return h}; _.=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};_.yd=function(a){if("function"==typeof a.Ja)return a.Ja();if(_.t(a))return a.split("");if(_.id(a)){for(var c=[],d=a.length,e=0;e<d;e++)c.push(a[e]);return c}return _.gd(a)};_.zd=function(a){if("function"==typeof a.Ia)return a.Ia();if("function"!=typeof a.Ja){if(_.id(a)||_.t(a)){var c=[];a=a.length;for(var d=0;d<a;d++)c.push(d);return c}return fd(a)}};}catch(e){_._DumpException(e)}try{_.Ad=function(a,c){return function(){try{return a.apply(c,arguments)}catch(d){_.K(d)}}};_.Cd=function(a,c,d,e,f){d=_.Ad(d,f);d=_.N(a,c,d,e,f);_.Bd(a,c);return d};_.Bd=function(a,c){if(a instanceof window.Element){var d=_.y("eq").Pe(a,c);if(d)if(_.M&&d instanceof window.MouseEvent&&a.dispatchEvent){var e=window.document.createEvent("MouseEvent");e.initMouseEvent(d.type,!0,!0,d.view,d.detail,d.screenX,d.screenY,d.clientX,d.clientY,d.ctrlKey,d.altKey,d.shiftKey,d.metaKey,d.button,d.relatedTarget);a.dispatchEvent(e)}else a.dispatchEvent&&a.dispatchEvent(d)}};}catch(e){_._DumpException(e)}try{var Hd;_.Dd=function(a,c,d,e,f){if(_.ea©){for(var g=0;g<c.length;g++)_.Dd(a,c[g],d,e,f);return null}d=_.Vc(d);return _.Kc(a)?a.Fc(c,d,e,f):_.Wc(a,c,d,!0,e,f)};_.Ed=function(a){_.H.call(this);this.R=a;this.U={}};_.w(_.Ed,_.H);var Fd=[];_.Ed.prototype.b=function(a,c,d,e){return Gd(this,a,c,d,e)};_.Ed.prototype.G=function(a,c,d,e,f){return Gd(this,a,c,d,e,f)};var Gd=function(a,c,d,e,f,g){_.ea(d)||(d&&(Fd[0]=d.toString()),d=Fd);for(var h=0;h<d.length;h++){var l=_.N(c,d[h],e||a.handleEvent,f||!1,g||a.R||a);if(!l)break;a.U[l.key]=l}return a};_.Ed.prototype.O=function(a,c,d,e){return Hd(this,a,c,d,e)};Hd=function(a,c,d,e,f,g){if(_.ea(d))for(var h=0;h<d.length;h++)Hd(a,c,d[h],e,f,g);else{c=_.Dd(c,d,e||a.handleEvent,f,g||a.R||a);if(!c)return a;a.U[c.key]=c}return a};_.Id=function(a,c,d,e){d.b(c,e,void 0,a.R||a,a)};_.Jd=function(a){_.Vb(a.U,_.ad);a.U={}}; _.Ed.prototype.M=function(){_.Ed.F.M.call(this);_.Jd(this)};_.Ed.prototype.handleEvent=function(){throw Error("y");};

</script>

 

How will you be able to , perfectly , understand it and what it does in its details???

Link to comment
Share on other sites

Usually when obtaining a third party library I read their documentation to figure out what it does. I don't actually read through minified code unless I'm reverse engineering something that the person didn't want to document.

  • Like 1
Link to comment
Share on other sites

"Ideally you would get the original code instead of the minified packed code".

 

"I don't actually read through minified code"

 

In the context of JavaScript , the difference between the original code and the minified code is this

 

minified code = original code - unnecessary characters

 

original code = minified code + unnecessary characters

 

if the minified code is the original code minus unnecessary characters so there is no difference between the minified code and the original code . So why both of you would get and prefer the original code rather than the minified code ???

Link to comment
Share on other sites

I look at this :

 

function show(){var a = document.forms["form"].role;alert(a);}function show1(){var b = document.forms["log"];alert(B);}function show2(){var c = document.forms["sys"];alert©;}function show3(){var d = document.forms["user"];alert(d);}

 

 

and this :

 

eval(function(p,a,c,k,e,d){e=function©{return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('b'+e©+'b','g'),k[c])}}return p}('1 g(){0 a=3.2["5"].f;4(a)}1 7(){0 b=3.2["6"];4(B)}1 8(){0 c=3.2["h"];4©}1 9(){0 d=3.2["e"];4(d)}',18,18,'var|function|forms|document|alert|form|log|show1|show2|show3|||||user|role|show|sys'.split('|'),0,{}))

 

both code are the same . Except that the second is an obfuscation of the first . Now and now I understand the trick . We really need the original code otherwise it will be a real ###### to understand such a code

Link to comment
Share on other sites

"I don't actually read through minified code unless I'm reverse engineering something that the person didn't want to document."

 

Please tell me , in the context of reverse engineering , if you want to reverse the very long and obfuscated code I gave above . How could you proceed ?

 

Should put this post in the general section ?`or it is ok to talk about it here?

Link to comment
Share on other sites

The first step would be to format it so it's readable. After that, I would go about replacing the shorter variable and function names with some of the things they replaced. If you can figure out generally what the algorithm is doing then you can guess on some variable names to help it make more sense.

Link to comment
Share on other sites

"The first step would be to format it so it's readable"

 

You mean you will deobfuscate it or unpack it ??

 

 

"you can guess on some variable names" "

I would go about replacing the shorter variable and function names with some of the things they replaced"

 

first why the need to guess the variable name if they can be of any name

 

for example :

 

var g = 12;

 

if you change g to b or c or x you get always the same result . So why changing the name of the variable and guessing it ? and the same with function

 

function read () {}

you can change the word read to any name you want still the function is the same and give the same result .

 

"If you can figure out generally what the algorithm is doing then you can guess on some variable names to help it make more sense"

 

how is it possible to figure out the algorithm in a complicated code even after getting the original code (which is impossible , you got only an approximation of the original code and not the original code) ? what are the tools and methods used to understand the algorithm ?

Link to comment
Share on other sites

You mean you will deobfuscate it or unpack it ??

No, I mean I would run it through a Javascript formatter to format the code.

So why changing the name of the variable and guessing it ?

So that the variable names make sense. I wouldn't change "g" to "c", I would change it to "num_completed" or "current_time" or "button_width" or something that makes sense according to whatever I think the code is trying to do.

what are the tools and methods used to understand the algorithm ?

It takes experience. You have to be able to follow the code and understand what it is doing.
  • Like 1
Link to comment
Share on other sites

"No, I mean I would run it through a Javascript formatter to format the code."

 

but , in the context of reverse engineering, the code you will get is obfuscated and packed . So even if you beautify it and format it , it will serve you to nothing as you will never be able to understand it even when is formatted !!??

Link to comment
Share on other sites

If I am going to spend the time to try and figure out what the code is doing I'm not going to try and do that with a bunch of code on a single line. I'm at least going to format it so that it's easy to read. Why am I going to try and figure out what code on a single line is doing when I can format it? Which one of these is easier to figure out:

function shuffle(array){var counter=array.length,temp,index;while(counter>0){index=Math.floor(Math.random()*counter);counter--;temp=array[counter];array[counter]=array[index];array[index]=temp;}return array;}
function shuffle(array) {    var counter = array.length, temp, index;    while (counter > 0) {        index = Math.floor(Math.random() * counter);        counter--;        temp = array[counter];        array[counter] = array[index];        array[index] = temp;    }    return array;}

you will never be able to understand it even when is formatted !!??

Why not? I'm a good programmer, I can understand code. Meaningful variable names help, but they aren't necessary.
Link to comment
Share on other sites

first question:

 

You mean that if you find an obfuscated and packed code , you will unpack it and deobfuscate it then format it? is this what you mean?

 

second question :

 

when you try to understand a code that has million of lines . How/what will you do to understand it ? and the relationship between the different blocks in this million lines code , the relationship between the data in the line 250 and data in the line 2 million and how they interact together ?

Link to comment
Share on other sites

You mean that if you find an obfuscated and packed code , you will unpack it and deobfuscate it then format it? is this what you mean?

No. There is no program that can unpack and deobfuscate code. I format it first, then I read through it to figure out what it's doing and deobfuscate it myself.

second question :

It's the same process, it just takes longer. Personally, I've never found it to be a good use of time to try and do something like that. I would rather just design a program myself to do the same thing.
Link to comment
Share on other sites

"There is no program that can unpack and deobfuscate code"

 

What about this :

 

 

https://puzzlefiles.com/Deobfuscate/index.html

 

put this obfuscated script : (I obfuscated it here https://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx)

 

var _0x323f=["x63x6Fx6Ex73x6Fx6Cx65","x66x6Fx72x6Dx73","x6Cx6Fx67","x73x79x73","x75x73x65x72"];function show(){var _0x88bdx2=document[_0x323f[1]][_0x323f[0]];alert(_0x88bdx2);}function show1(){var _0x88bdx4=document[_0x323f[1]][_0x323f[2]];alert(_0x88bdx4);}function show2(){var _0x88bdx6=document[_0x323f[1]][_0x323f[3]];alert(_0x88bdx6);}function show3(){var _0x88bdx8=document[_0x323f[1]][_0x323f[4]];alert(_0x88bdx8);}

 

and it will deobfuscate it

 

 

"It's the same process, it just takes longer. Personally, I've never found it to be a good use of time to try and do something like that. I would rather just design a program myself to do the same thing."

 

Does it mean that you cannot do it as it is a difficult process for you ?

Link to comment
Share on other sites

That's not much of an obfuscated script. Go back up to the shuffle function I posted above. It starts like this:

function shuffle(array) {    var counter = array.length, temp, index;    while (counter > 0) {        index = Math.floor(Math.random() * counter);        counter--;        temp = array[counter];        array[counter] = array[index];        array[index] = temp;    }    return array;}
When you pack it, you get this:
function shuffle(r){for(var f,n,o=r.length;o>0;)n=Math.floor(Math.random()*o),o--,f=r[o],r[o]=r[n],r[n]=f;return r}
Using your link to "de-obfuscate" it results in this:
function shuffle(r) {    for (var f, n, o = r.length; o > 0;) n = Math.floor(Math.random() * o), o--, f = r[o], r[o] = r[n], r[n] = f;    return r}
Notice how it is not the same as the original code. Information from the original code (variable names, comments, etc) is lost when packing the code and there is no program to get that back. The code that you showed that is supposed to be obfuscated is just code where they replaced various strings with hex code equivalents, that's not much obfuscation. It's still easy to tell what your code does. This is what obfuscated code looks like (written in C):
#include "SDL.h"#define $ for(O=9#define CX M+=(T%3+2*!(!T*t-6))#define x ,A=4*!T,O=t,W=h=T<3?u(Q?p:D(A+3),D(A),D(A+1)[i]+D(A+2)*g+):K(t),U=V=K(a),o?U=h,W=V:V,#define C 8*-~L#define Z short#define y a(Z)Y[++O]#define B ),a--||(#define _ ),e--||(#define V(I,D,E)(O=a(I)h[r])&&!(A=(D)(V=(1[E+L]<<16)+*i)/O,A-(I)A)?1[E+L]=V-O*(*E=A):H(0)#define i(B,M)B(o){return M;}#define R(O,M,_)(S=L?a(I Z)O:O,N=L?a(I Z)O M(f=a(I Z)_):(O M(f=a(I n)_)))#define T(_)R(r[u(10,L=4,--)],=,_)#define u(a,r,T)16*i[a]+(I Z)(T i[r])#define a(_)*(_*)define L(_)M(W,_,U)#define M(S,F,T)R(r[S],F,r[T])#define A(_)(i[L=4]+=2,R(_,=,r[u(10,4,-2+)]))#define c(R,T)(1[u=19,L+T]=(N=a(R)h[r]*(R)*T)>>16,*i=N,G(F(N-(R)N)))#define h(_)(1&(L?a(Z)_:_)>>C-1)#define I unsigned#define n char#define e(_)v(F(40[L(_##=40[E]+),E]&N==S|_ N<_(int)S))I n t,e,l[80186],*E,m,u,L,a,T,o,r[1<<21],X,*Y,b,Q,R;I Z*i,M,p,q=3;I*localtime(),f,S,kb,h,W,U,c,g,d,V,A;N,O,P=983040,j[5];SDL_Surface*k;i(F,40[E]=!!o)i(z,42[E]=!!o)i(D,r[a(I)E[259+4*o]+O])i(w,i[o]+=~(-2*47[E])*~L)i(v,G(N-S&&1&(40[z((f^=S^N)&16),E]^f>>C-1)))J(){V=61442;$;O--;)V+=40[E+O]<<D(25);}i(H,(46[u=76,J(),T(V),T(9[i]),T(M),M(P+18,=,4*o+2),R(M,=,r[4*o]),E]=0))s(o){$;O--;)40[E+O]=1&&1<<D(25)&o;}i(BP,(*i+=262*o*z(F((*E&15)>9|42[E])),*E&=15))i(SP,(w(7),R&&--1[i]&&o?R++,Q&&Q++,M--:0))DX(){$,O*=27840;O--;)O[(I*)k->pixels]=-!!(1<<7-O%8&r[O/2880*90+O%720/8+(88+952[l]/128*4+O/720%4<<13)]);SDL_Flip(k);}main(BX,nE)n**nE;{9[i=E=r+P]=P>>4;$;q;)j[--q]=*++nE?open(*nE,32898):0;read(2[a(I)*i=*j?lseek(*j,0,2)>>9:0,j],E+(M=256),P);$;Y=r+16*9[i]+M,Y-r;Q|R||kb&46[E]&&KB)--64[T=1[O=32[L=(X=*Y&7)&1,o=X/2&1,l]=0,t=(c=y)&7,a=c/8&7,Y]>>6,g=~-T?y:(n)y,d=BX=y,l],!T*t-6&&T-2?T-1?d=g:0:(d=y),Q&&Q--,R&&R--x(O=*Y,O=u=D(51),e=D(8),m=D(14)_ O=*Y/2&7,M+=(n)c*(L^(D(m)[E]|D(22)[E]|D(23)[E]^D(24)[E]))_ L=*Y&8,R(K(X)[r],=,c)_ L=e+=3,o=0,a=X x a=m _ T(X[i])_ A(X[i])_ a<2?M(U,+=1-2*a+,P+24),v(f=1),G(S+1-a==1<<C-1),u=u&4?19:57:a-6?CX+2,a-3||T(9[i]),a&2&&T(M),a&1&&M(P+18,=,U+2),R(M,=,U[r]),u=67:T(h[r])_(W=U B u=m,M-=~L,R(W[r],&,d)B 0 B L(=~)B L(=-),S=0,u=22,F(N>S)B L?c(I Z,i):c(I n,E)B/**/L?c(Z,i):c(n,E)B L?V(I Z,I,i):V(I n,I Z,E)B L?V(Z,int,i):V(n,Z,E))_++e,h=P,d=c,T=3,a=m,M--_++e,13[W=h,i]=(o|=!L)?(n)d:d,U=P+26,M-=~!o,u=17+(m=a)_(a=m B L(+=),F(N<S)B L(|=)B e(+)B e(-)B L(&=)B L(-=),F(N>S)B L(^=)B L(-),F(N>S)B L(=))_!L?L=a+=8 x L(=):!o?Q=1,R(r[p=m x V],=,h):A(h[r])_ T=a=0,t=6,g=c x M(U,=,W)_(A=h(h[r]),V=m?++M,(n)g:o?31&2[E]:1)&&(a<4?V%=a/2+C,R(A,=,h[r]):0,a&1?R(h[r],>>=,V):R(h[r],<<=,V),a>3?u=19:0,a<5?0:F(S>>V-1&1)B R(h[r],+=,A>>C-V),G(h(N)^F(N&1))B A&=(1<<V)-1,R(h[r],+=,A<<C-V),G(h(N*2)^F(h(N)))B R(h[r],+=(40[E]<<V-1)+,A>>1+C-V),G(h(N)^F(A&1<<C-V))B R(h[r],+=(40[E]<<C-V)+,A<<1+C-V),F(A&1<<V-1),G(h(N)^h(N*2))B G(h(N)^F(h(S<<V-1)))B G(h(S))B 0 B V<C||F(A),G(0),R(h[r],+=,A*=~((1<<C)-1>>V)))_(V=!!--1[a=X,i]B V&=!m[E]B V&=m[E]B 0 B V=!++1[i]),M+=V*(n)c _ M+=3-o,L?0:o?9[M=0,i]=BX:T(M),M+=o*L?(n)c:c _ M(U,&,W)_ L=e+=8,W=P,U=K(X)_!R||1[i]?M(m<2?u(8,7,):P,=,m&1?P:u(Q?p:11,6,)),m&1||w(6),m&2||SP(1):0 _!R||1[i]?M(m?P:u(Q?p:11,6,),-,u(8,7,)),43[u=92,E]=!N,F(N>S),m||w(6),SP(!N==B):0 _ o=L,A(M),m&&A(9[i]),m&2?s(A(V)):o||(4[i]+=c)_ R(U[r],=,d)_ 986[l]^=9,R(*E,=,l[m?2[i]:(n)c])_ R(l[m?2[i]:(n)c],=,*E)_ R=2,b=L,Q&&Q++_ W-U?L(^=),M(U,^=,W),L(^=):0 _ T(m[i])_ A(m[i])_ Q=2,p=m,R&&R++_ L=0,O=*E,F(D(m+=3*42[E]+6*40[E])),z(D(1+m)),N=*E=D(m-1)_ N=BP(m-1)_ 1[E]=-h(*E)_ 2[i]=-h(*i)_ 9[T(9[i]),T(M+5),i]=BX,M=c _ J(),T(V)_ s(A(V))_ J(),s((V&~m)+1[E])_ J(),1[E]=V _ L=o=1 x L(=),M(P+m,=,h+2)_++M,H(3)_ M+=2,H(c&m)_++M,m[E]&&H(4)_(c&=m)?1[E]=*E/c,N=*E%=c:H(0)_*i=N=m&E[L=0]+c*1[E]_*E=-m[E]_*E=r[u(Q?p:m,3,*E+)]_ m[E]^=1 _ E[m/2]=m&1 _ R(*E,&,c)_(a=c B write(1,E,1)B time(j+3),memcpy(r+u(8,3,),localtime(j+3),m)),a<2?*E=~lseek(O=4[E][j],a(I)5[i]<<9,0)?((I(*)())(a?write:read))(O,r+u(8,3,),*i):0:0),O=u,D(16)?v(0):D(17)&&G(F(0)),CX*D(20)+D(18)-D(19)*~!!L,D(15)?O=m=N,41[43[44[E]=h(N),E]=!N,E]=D(50):0,!++q?kb=1,*l?SDL_PumpEvents(),k=k?k:SDL_SetVideoMode(720,348,32,0),DX():k?SDL_Quit(),k=0:0:0;}i(G,48[E]=o)i(K,P+(L?2*o:2*o+o/4&7))
Notice all of the single-letter variable names. Obfuscation is not as simple as just replacing some strings with a series of hex codes.

Does it mean that you cannot do it as it is a difficult process for you ?

No, it means that I better have a really good reason to try and figure it out if I'm going to spend that much time on it.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...