哪位高手来帮我解一个网页密码(内详),一百分谢!

yptian 2002-12-05 03:52:05
网页代码如下:

<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>

...全文
80 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
CXZ9 2002-12-05
  • 打赏
  • 举报
回复
是loginl

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))
alert(t3);
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("密码错误,请再输入!")
}

=======================
◢◣。 ◢◣。
◢★◣。 ◢★◣。
◢■■◣。 ◢■■◣。
◢■■■◣。 ◢■■■◣。
︸︸||︸︸ !!︸︸||︸︸
愿您有快乐的每一天 ^_^!!
88dd 2002-12-05
  • 打赏
  • 举报
回复

function getpassword()
{
var xx = "";
for ( var i=0; i<6; i++ )
{
xx += testit( pass[3].charAt(i) );
}
alert( xx );
}
getpassword();
88dd 2002-12-05
  • 打赏
  • 举报
回复
loginl
liudong963 2002-12-05
  • 打赏
  • 举报
回复
破解出来的密码就是:loginl
对吗?

87,994

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧