雪扬冷动情 - 2011-11-24 15:06:00
非常感谢 大版主
networkedition
让我又学习到了很多东西。
<script>
var a1 = "ABCDEFG";
var a2 = "HIJKLMNOP";
var a3 = "QRSTUVWXYZabcdef";
var keyStrs = a1+a2+a3+"ghijklmnopqrstuv"+"wxyz0123456789+/"+"=";
function mydata(input){
var output="";
var chr1,chr2,chr3="";
var enc1,enc2,enc3,enc4="";
var i=0;
var base64test=/[^A-Za-z0-9\+\/\=]/g;
input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");
do{
enc1=keyStrs.indexOf(input.charAt(i++));
enc2=keyStrs.indexOf(input.charAt(i++));
enc3=keyStrs.indexOf(input.charAt(i++));
enc4=keyStrs.indexOf(input.charAt(i++));
chr1=(enc1<<2)|(enc2>>4);
chr2=((enc2&15)<<4)|(enc3>>2);
chr3=((enc3&3)<<6)|enc4;
output=output+String.fromCharCode(chr1);
if(enc3!=64){output=output+String.fromCharCode(chr2);};
if(enc4!=64){output=output+String.fromCharCode(chr3);};
chr1=chr2=chr3="";
enc1=enc2=enc3=enc4="";
networkedition - 2011-11-24 15:22:00
用redoce的D>Document.Write清除(执行获得结果)解密即可。
networkedition - 2011-11-24 15:25:00
解密结果如下:
<script src="http://www.171gm.com/index_4.gif" width="50" height="80" language="JavaScript"></script>
<script src="http://www.171gm.com/index_5.gif" width="50" height="80" language="JavaScript"></script>
<DIV align=center>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#ff6600 height=500
borderColorDark=#ff6600 cellPadding=0 width=900 borderColorLight=#ff6600
border=1>
<TBODY>
<TR>
雪扬冷动情 - 2011-11-24 16:27:00
非常感谢。您的耐心教导。
kingw3 - 2011-12-2 21:36:00
表示看不懂 版主能说的清楚点不
奇缘の随风 - 2011-12-6 10:14:00
代码不全
redbsd - 2011-12-11 19:40:00
代码给的不全,还是被编辑了;
> 解密: 解密: Document.Write还原.
= [之前:924 之后:924] (无变化)
© 2000 - 2024 Rising Corp. Ltd.