帮我破解一段被加密的js代码。
发布网友
发布时间:2022-04-28 11:18
我来回答
共5个回答
热心网友
时间:2022-04-24 17:12
var dw_Inf={
};
dw_Inf.fn=function(v){
return eval(v)};
dw_Inf.gw=dw_Inf.fn("window.location");
dw_Inf.ar=[65,32,108,105,99,101,110,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,102,111,114,32,97,108,108,32,98,117,116,32,112,101,114,115,111,110,97,108,32,117,115,101,32,111,102,32,116,104,105,115,32,99,111,100,101,46,32,83,101,101,32,84,101,114,109,115,32,111,102,32,85,115,101,32,97,116,32,100,121,110,45,119,101,98,46,99,111,109];
dw_Inf.get=function(ar){
var s="";
var ln=ar.length;
for(var i=0;
i<ln;
i++){
s+=String.fromCharCode(ar[i]);
}return s;
};
dw_Inf.mg=dw_Inf.fn('dw_Inf.get(dw_Inf.ar)');
dw_Inf.fn('dw_Inf.gw1=dw_Inf.gw.hostname.toLowerCase();
');
dw_Inf.fn('dw_Inf.gw2=dw_Inf.gw.href.toLowerCase();
');
dw_Inf.x0=function(){
dw_Inf.fn('if(!(dw_Inf.gw1==''||dw_Inf.gw1=='127.0.0.1'||dw_Inf.gw1.indexOf('localhost')!=-1||dw_Inf.gw2.indexOf('dyn-web.com')!=-1))alert(dw_Inf.mg);
dw_Tooltip.ttready=true;
');
};
dw_Inf.fn('dw_Inf.x0();
');
这个代码进一步解码 就是把ASCII码转换成字符了 就没什么好解的了
这段代码的功能就是 判断URL如果不包含dyn-web.com 就提示
A license is required for all but personal use of this code. See Terms of Use at dyn-web.com追问@.@
替换后出错了呢。
dw_Tooltip 未定义
热心网友
时间:2022-04-24 18:30
var dw_Inf={};
dw_Inf.fn=function(v){
return eval(v)
};
dw_Inf.gw=dw_Inf.fn("window.location");
dw_Inf.ar=[65,32,108,105,99,101,110,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,102,111,114,32,97,108,108,32,98,117,116,32,112,101,114,115,111,110,97,108,32,117,115,101,32,111,102,32,116,104,105,115,32,99,111,100,101,46,32,83,101,101,32,84,101,114,109,115,32,111,102,32,85,115,101,32,97,116,32,100,121,110,45,119,101,98,46,99,111,109];
dw_Inf.get=function(ar){
var s="";
var ln=ar.length;
for(var i=0;i<ln;i++){
s+=String.fromCharCode(ar[i]);
}
return s;
};
dw_Inf.mg=dw_Inf.fn("dw_Inf.get(dw_Inf.ar)");
dw_Inf.fn("dw_Inf.gw1=dw_Inf.gw.hostname.toLowerCase();");
dw_Inf.fn("dw_Inf.gw2=dw_Inf.gw.href.toLowerCase();");
dw_Inf.x0=function(){
dw_Inf.fn("if(!(dw_Inf.gw1==''||dw_Inf.gw1=='127.0.0.1'||dw_Inf.gw1.indexOf('localhost')!=-1||dw_Inf.gw2.indexOf('dyn-web.com')!=-1))alert(dw_Inf.mg);dw_Tooltip.ttready=true;");
};
dw_Inf.fn("dw_Inf.x0();");
热心网友
时间:2022-04-24 20:05
<script>
var dw_Inf={};
dw_Inf.fn=function(v){return eval(v)};
dw_Inf.gw=window.location;
dw_Inf.gw1=dw_Inf.gw.hostname.toLowerCase();
dw_Inf.gw2=dw_Inf.gw.href.toLowerCase();
dw_Inf.ar=[65,32,108,105,99,101,110,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,102,111,114,32,97,108,108,32,98,117,116,32,112,101,114,115,111,110,97,108,32,117,115,101,32,111,102,32,116,104,105,115,32,99,111,100,101,46,32,83,101,101,32,84,101,114,109,115,32,111,102,32,85,115,101,32,97,116,32,100,121,110,45,119,101,98,46,99,111,109];
dw_Inf.mg='A license is required for all but personal use of this code. See Terms of Use at dyn-web.com';
dw_Inf.get=function(ar){var s="";var ln=ar.length;for(var i=0;i<ln;i++){s+=String.fromCharCode(ar[i]);}return s;};
dw_Inf.x0=function(){
if(!(dw_Inf.gw1==''||dw_Inf.gw1=='127.0.0.1'||dw_Inf.gw1.indexOf('localhost')!=-1||dw_Inf.gw2.indexOf('dyn-web.com')!=-1))alert(dw_Inf.mg);dw_Tooltip.ttready=true;
};
dw_Inf.x0();
</script>
热心网友
时间:2022-04-24 21:56
var dw_Inf={
};
dw_Inf.gw=window.location;
dw_Inf.gw.hostname.toLowerCase();
dw_Inf.gw2=dw_Inf.gw.href.toLowerCase();
dw_Inf.x0=function () {
if(!(dw_Inf.gw1==''||dw_Inf.gw1=='127.0.0.1'||dw_Inf.gw1.indexOf('localhost')!=-1||dw_Inf.gw2.indexOf('dyn-web.com')!=-1))
{
alert('A license is required for all but personal use of this code. See Terms of Use at dyn-web.com');
}
dw_Tooltip.ttready=true;
};
dw_Inf.x0();追问换上你的代码,也是运行不正常了,出错。
追答解密前你的代码也是提示 dw_tip未定义啊
热心网友
时间:2022-04-25 00:04
这个我不会,抱歉哦!不过你想要一个什么效果的js了?我可以帮你找找的