哪位高手来帮我解一个网页密码(内详),一百分谢!
网页代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<SCRIPT language=javascript>
<!--
function error()
//-->
</SCRIPT>
<script>
var pass=new Array()
var t3=""
var lim=6
pass[0]="hAIQyCBv6vR3Cd0"
pass[1]="UiJUSwDc5Gi2fag"
pass[2]="pXxQW7WYG3y48ol"
pass[3]="SXPNQSSFNRJUKFQ"
pass[4]="6SHWjOc9n7PvpDc9"
pass[5]="35SHWjOc9n7PvpDc"
//你可以设置后缀为其它文件格式,默认为.html
var extension=".html"
var enablelocking=1
var numletter="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
var temp3=''
var cur=0
function max(which){
return (pass[Math.ceil(which)+(3&15)].substring(0,1))
}
function testit(input){
temp=numletter.indexOf(input)
var temp2=temp^parseInt(pass[phase1-1+(1|3)].substring(0,2))
temp2=numletter.substring(temp2,temp2+1)
return (temp2)
}
function submitentry(){
t3=''
verification=document.password1.password2.value
phase1=Math.ceil(Math.random())-6+(2<<2)
var indicate=true
for (i=(1&2);i<window.max(Math.LOG10E);i++)
t3+=testit(verification.charAt(i))
for (i=(1&2);i<lim;i++){
if (t3.charAt(i)!=pass[phase1+Math.round(Math.sin(Math.PI/2)-1)].charAt(i))
indicate=false
}
if (verification.length!=window.max(Math.LOG10E))
indicate=false
if (indicate)
window.location=verification+extension
else
alert("密码错误,请再输入!")
}
</script>
<title>picture1</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p align="center"><b><font size="4"></font></b></p>
<table width="640" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#000000">
<tr>
<td></td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" cellpadding="0" height="82" align="center">
<tr>
<td width="100%" height="42">
<form name="password1"><div align="center"><center>
<p align="left"><strong> 密码: </strong>
<input
type="text" name="password2" size="15">
<input type="button" value="会员进入" onClick="submitentry()" name="button">
<b></a><br>
</b> </p>
</center></div>
</form>
</td>
</tr>
</table>