今天看博客園文章,看到一篇比較好的文章。
今天又學會一招,可以對一些采用eval加密的js進行解密。
打開谷歌或者火狐瀏覽器,然后按 F12,接着把這代碼復制進去,
最后,去掉開頭 4 個字母 eval 然后回車運行下就得到源碼了。
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c][/c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c][/c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c][/c]);return p;}('(1(){1 4(0){6(0){2 0};2 5};7 3=4();8(3)})();',9,9,'a|function|return|ret|test|123|if|var|alert'.split('|'),0,{}))
如圖:
