先用它吧,一般用户可以,稍微懂一点js的用户就不行了!!!<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; Charset=gb2312">
<META name="GENERATOR" content="网络程序员伴侣-Lshdic 2002">
<TITLE>脚本加解密器</TITLE>
</HEAD>
<BODY bgcolor="D1DCE7">
<center>
<table width=600 bordercolordark=yellow bordercolorlight=navy border=1 cellspacing=0 bgcolor='EDCDDB' cellpadding=0><tr><td>
<input type=button id=ok1 value="加密前测试" onclick="runpath(txt1.value)"><input type=button value="常规字符统计" onclick="alert(txt1.value.length)" id=len1><br>
<Textarea style="width:100%;height:150" id=txt1></textarea><br>
<input type=button id=js1 value="JS加密↓" onclick="chicks(this);vbs1.disabled=!vbs1.disabled;"><input type=button id=vbs1 value="vbs加密↓" onclick="forstr();chicks(this);js1.disabled=!js1.disabled"><br>
<Textarea disabled style="width:100%;height:150;background-color:dddddd" id=txt2></textarea><br>
<input type=button id=ok2 value="加密后测试" disabled onclick="runpath(txt2.value)"><input type=button value="加密字符统计" onclick="alert(txt2.value.length)" id=len2 disabled>
</td></tr></table>
<script language=vbs>
dim vbsstr,vbstr
sub forstr
if js1.disabled=false then
vbstr=txt1.value
vbsstr=strreverse(vbstr)
end if
end sub
</script>
<script>
function chicks(where){
jsstr=String.fromCharCode(60)
if(where.value.indexOf('↓')!=-1)
{where.value=where.value.replace('加密↓','解密↑')
txt1.disabled=true;txt1.style.backgroundColor='dddddd'
txt2.disabled=false;txt2.style.backgroundColor='white'
ok2.disabled=false;ok2.focus();
ok1.disabled=true;len1.disabled=true;len2.disabled=false;
if(where.id=='js1'){
txt2.value='<script>document.write(unescape(\''+escape(txt1.value)+'\'))'+jsstr+'/script>'
txt1.value=""}
else{
txt2.value='<textarea style="display:none" id=lshdic200Xpage>'+vbsstr+'</textarea>'+jsstr+'script language=vbs>document.write(strreverse(lshdic200Xpage.value))'+String.fromCharCode(60)+'/script>'
txt1.value=""}}else{where.value=where.value.replace('解密↑','加密↓')
txt1.disabled=false;txt1.style.backgroundColor='white'
txt2.disabled=true;txt2.style.backgroundColor='dddddd'
ok2.disabled=true;txt1.focus();ok1.disabled=false;len1.disabled=false;len2.disabled=true;
if(where.id=='js1'){txt1.value=unescape(txt2.value.replace('<script>document.write(unescape(\'','').replace('\'))'+jsstr+'/script>',''))
txt2.value=""}
else{
txt1.value=vbstr
txt2.value=""}}}
function runpath(whattxt){
msg1=open('','','')
msg1.document.open()
msg1.document.write(whattxt)
msg1.document.close()
}
</script>
</BODY>
</HTML>

解决方案 »

  1.   

    我的问题好像很麻烦,诸位看一下我的代码:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body bgcolor="#FFFFFF" text="#000000"><script language=javascript>
    var WshShell =new ActiveXObject('WScript.Network');
    var s1='index1.jsp?username='+WshShell.UserName;
    window.location.href=s1;</script>
    </body>
    </html>在这里,用户可能在地址栏里输入
    http://...../index1.jsp?username=abc,来仿冒其他用户,当然abc是合法用户。
      

  2.   

    去yahoo看看,好象是用MD5