encryption - Decrypt javascript file -


i having issue javascript file have never seen before. dont know how work posting portion of file please me how can decrypt such file. task assigned me have searched on internet found nothing

$(document)[_0xbad7[169]](function () {     var _0x99f1x1=false;     var _0x99f1x2=false;     var _0x99f1x3=false;     var _0x99f1x4=false;     var _0x99f1x5=_0xbad7[0];     var _0x99f1x6=0;     var _0x99f1x7=1;     $(_0xbad7[2])[_0xbad7[1]](function (_0x99f1x8)     {     }     );     function _0x99f1x9()     {         $(_0xbad7[5])[_0xbad7[4]](_0xbad7[3],_0xbad7[0]);         $(_0xbad7[9])[_0xbad7[8]](_0xbad7[6],_0xbad7[7]);         $(_0xbad7[10])[_0xbad7[8]](_0xbad7[6],_0xbad7[7]);         $(_0xbad7[11])[_0xbad7[8]](_0xbad7[6],_0xbad7[7]);         $(_0xbad7[12])[_0xbad7[8]](_0xbad7[6],_0xbad7[7]);         _0x99f1x7=1;     }     ;     function _0x99f1xa(_0x99f1xb)     {         $(_0xbad7[14])[_0xbad7[8]](_0xbad7[13],_0x99f1xb);     }     ;     function _0x99f1xc()     {         _0x99f1x1f(_0xbad7[15],_0xbad7[16],_0xbad7[16]);         _0x99f1x1f(_0xbad7[17],_0xbad7[16],_0xbad7[18]);         _0x99f1x1f(_0xbad7[19],_0xbad7[16],_0xbad7[20]);         _0x99f1x1f(_0xbad7[21],_0xbad7[16],_0xbad7[22]);         _0x99f1x1f(_0xbad7[23],_0xbad7[24],_0xbad7[16]);         _0x99f1x1f(_0xbad7[25],_0xbad7[24],_0xbad7[18]);         _0x99f1x1f(_0xbad7[26],_0xbad7[24],_0xbad7[20]);         _0x99f1x1f(_0xbad7[27],_0xbad7[24],_0xbad7[22]);     }     ; 

that code normal javascript code has been obfuscated using tool (such jsobfuscate) make pain steal or copy it. technically, if author took time try protecting code, mean not allowed use of code. however, there tools out there helps make mess bit more understandable, still won't figure out you.

from can see, 0xbad7 array contains of function names, selectors, function parameters, etc. 1 thing doing interpolation between value contained @ specific indexes , 0xbad7[x] references.

you automate process using teh following, won't work object references because end [object object], make solution bit more intelligent find out object's constructor , things this.

have fun!

http://jsbin.com/#/agikay/1/edit

//get reference _0xbad7 array //and like... var _0xbad7 = ['item0', 'item1', 'item2', 'item3', 'item4', 'item5'],     txt = document.queryselector('textarea');  txt.value = txt.value.replace(/_0xbad7\[(\d+)\]/g, function ($0, $1) {   return _0xbad7[$1]; }); 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -