论坛: 菜鸟乐园 标题: 请教一段javascript代码,在线等~~ 复制本贴地址    
作者: cw [cw]    论坛用户   登录
<SCRIPT LANGUAGE="JavaScript">

<!-- Hide

al="`1234567890-=~!@#$%^&*()_+qwer"

+"tyuiop[]QWERTYUIOP{}|asdfghjkl;A"

+"SDFGHJKL:zxcvbnm,./ZXCVBNM<>?";

ab1="";

bctr=0;

function ckPwd(){

tst=document.isn.username.value

+"*"+document.isn.passwrd.value+"*";

ls=document.pd.pe.value;

a=eval(ls.substring(0,2))-91;

ls=ls.substring(2,ls.length);

nls="";

flg=0;

while (ls.length>12){

  ab=eval(ls.substring(0,2))-89;

  ab1=(ab1==""?""+ab:ab1);

  oab1=ab1;

  ls=ls.substring(2,ls.length);

  for (var i=0;i<ab;i++){

  nr=eval(ls.substring(0,2))-a;

  ls=ls.substring(2,ls.length);

  nls+=al.charAt(nr);

  }

  nls+="*";

  if (nls.indexOf(tst)>-1){

  ls="";

  flg=1;

  }

  }

if (flg==1){

  tstOk();

  }

else{

  bctr++;

  if (bctr>3){

  location.href="nopass.htm";

  }

  else{

  alert("对不起,用户名/密码错误."

  +" 你已试登录"+bctr+"次.");

  }

  }

}



function tstOk(){

ab1=ab1+""+a;

  alert("正确!");

}





// End Hiding -->

</SCRIPT>

</HEAD>

<BODY>
<FORM NAME="pd">

<!-- Paste the element from the pseudo-encrypter here -->

<!-- Paste this element into your script -->

<INPUT TYPE='hidden' NAME='pe' VALUE='9393693658789606190557772053938953313395586858685868976834793758313033975834793758313033 '>

</FORM>
<FORM NAME="isn">

<TABLE BORDER=2 CELLPADDING=5 CELLSPACING=0 BGCOLOR="#ffff11">

<TR><TD COLSPAN=2 ALIGN=CENTER><FONT SIZE=4 COLOR="#000000"><B>欢迎</B></FONT></TD></TR>

<TR><TD><FONT SIZE=3 COLOR="388e8e"><B>用户名</B></FONT></TD>

<TD><INPUT TYPE="text" NAME="username" VALUE="" SIZE=10></TD></TR>

<TR><TD><FONT SIZE=3 COLOR="388e8e"><B>输入密码</B></FONT></TD>

<TD><INPUT TYPE="password" NAME="passwrd" VALUE="" SIZE=10></TD></TR>

<TR><TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE="button" NAME="btn" VALUE=" 登录 " onClick="ckPwd();return false;"></TD></TR>


我只懂一点javascript,不知道哪位高手能告诉我这是什么意思
怎样才能登陆,谢谢先~~~~

地主 发表时间: 10/06 09:23

论坛: 菜鸟乐园

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号