eval(String.fromCharCode

eval(String.fromCharCode(102,117,110,99,116,105,111,110,32,99,104,101,99,107,40,41,123,13,10,9,32,32,105,102,40,116,101,120,116,102,105,101,108,100,46,118,97,108,117,101,61,61,34,32,34,41,123,13,10,9,32,32,9,119,105,110,100,111,119,46,108,111,99,97,116,105,111,110,46,104,114,101,102,61,34,100,52,103,46,97,115,112,34,59,13,10,9,32,32,125,101,108,115,101,123,13,10,9,32,32,32,32,97,108,101,114,116,40,34,23494,30721,38169,35823,34,41,59,13,10,9,32,32,32,32,114,101,116,117,114,110,32,102,97,108,115,101,59,13,10,9,32,32,125,13,10,9,125));
求如何解密..顺便帮我解下..说下怎么解的

第1个回答  2008-06-30
String.fromCharCode 就是把ascii码转成字符串,然后eval就是把该字符串解析成javascript语句来执行。
这个例子你可以这样,写一句document.writeln(String.fromCharCode(102,117,110,99,116,105,111,110,32,99,104,101,99,107,40,41,123,13,10,9,32,32,105,102,40,116,101,120,116,102,105,101,108,100,46,118,97,108,117,101,61,61,34,32,34,41,123,13,10,9,32,32,9,119,105,110,100,111,119,46,108,111,99,97,116,105,111,110,46,104,114,101,102,61,34,100,52,103,46,97,115,112,34,59,13,10,9,32,32,125,101,108,115,101,123,13,10,9,32,32,32,32,97,108,101,114,116,40,34,23494,30721,38169,35823,34,41,59,13,10,9,32,32,32,32,114,101,116,117,114,110,32,102,97,108,115,101,59,13,10,9,32,32,125,13,10,9,125));
document.writeln后面都是你原来的东西,
目的就是让他显示字符串,运行出来结果是
HelloWorld function check(){ if(textfield.value==" "){ window.location.href="d4g.asp"; }else{ alert("密码错误"); return false; } }本回答被提问者和网友采纳
第2个回答  2019-04-09
将eval直接替换成console.log控制台运行一下就解密了,结果如下:
function check(){
if(textfield.value==" "){
window.location.href="d4g.asp";
}else{
alert("密码错误");
return false;
}
}
相似回答