如何算出以下密码

yosure 2003-02-21 11:38:46
<html>
<head>
<title>如何算出以下密码</title>
<style type="text/css">
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:9pt;
font-family:宋体;
font-weight:;
color:red;
}A:link {
COLOR: #00ff00; FONT-FAMILY: 宋体; TEXT-DECORATION: none
}
A:visited {
COLOR: #00ff00; FONT-FAMILY: 宋体; TEXT-DECORATION: none
}
A:active {
COLOR: #ff0000; FONT-FAMILY: 宋体; TEXT-DECORATION: none
}
A:hover {
COLOR: #ff0000; TEXT-DECORATION: underline
}
BODY {
FONT-SIZE: 9pt
}
TH {
FONT-SIZE: 9pt
}
TD {
FONT-SIZE: 9pt
}
A {
FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; TEXT-DECORATION: none
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 bgcolor="#4d4d4c" text="#99cc00">
<br>
<p></P><P></P>

<center>
<table border="2" cellpadding="45" cellspacing="2" width="95%" bordercolor="#999999">
<tr>
<td width="100%" bordercolor="#999999" background="s2.gif">
<p align="left" style="margin-top: -2">
<script>
var pass=new Array()
var t3=""
var lim=7
pass[0]="W5AH5Glv6VgTUi6"
pass[1]="f9XR73wcl2ldHMe"
pass[2]="9PbpmVeAFo2gCU"
pass[3]="dvvgdvvkhaiuLEj"
pass[4]="7IGuaDUvtPrB7IMu"
pass[5]="17IGuaDUvtPrB7IM"
var extension=".html"
var enablelocking=0
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>
<strong>对不起,您尚未登录,请输入免费会员密码进入...</strong>
<p align="left" style="margin-top: -2"> 
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#00000">
<tr>
<td width="100%"><form name="password1"><div align="center"><center><p><strong>请输入会员密码: </strong><input
type="text" name="password2" size="8"><br><input type="button" value="进入会员区" onClick="submitentry()"></p>
</center></div>
</form>
</td>
</tr>
</table>
</tr>
</table>
<p> </p></center>

</body>

</html>
...全文
38 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangxj0600 2003-02-21
  • 打赏
  • 举报
回复
http://expert.csdn.net/Expert/topic/1437/1437611.xml?temp=.7368585
wangxj0600 2003-02-21
  • 打赏
  • 举报
回复
怎么到处要破这个密码
密码是see1see
是什么地方的密码
前两天不是才发过吗??
meizz 2003-02-21
  • 打赏
  • 举报
回复
这个贴子以前在本版已经有人问过了.你搜索一下
airlulu 2003-02-21
  • 打赏
  • 举报
回复
是不是MD5来的?
无爱大叔 2003-02-21
  • 打赏
  • 举报
回复
yun
wangxj0600 2003-02-21
  • 打赏
  • 举报
回复
是什么地方的密码???
nik_Amis 2003-02-21
  • 打赏
  • 举报
回复
up
wangxj0600 2003-02-21
  • 打赏
  • 举报
回复
更详细的
<script>
var pass=new Array()
var t3=""
var lim=7
pass[0]="W5AH5Glv6VgTUi6"
pass[1]="f9XR73wcl2ldHMe"
pass[2]="9PbpmVeAFo2gCU"
pass[3]="dvvgdvvkhaiuLEj"
pass[4]="7IGuaDUvtPrB7IMu"
pass[5]="17IGuaDUvtPrB7IM"
var extension=".html"
var enablelocking=0
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))
var t4 = "";
var s5 = "dvvgdvv"
for (i=(1&2);i<window.max(Math.LOG10E);i++)
t4+=testit(s5.charAt(i))
alert(t4);
for (i=(1&2);i<lim;i++){
alert(t3.charAt(i) + "=" + pass[phase1+Math.round(Math.sin(Math.PI/2)-1)].charAt(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>
<strong>对不起,密码错误...</strong>
<p align="left" style="margin-top: -2"> 
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><form name="password1"><div align="center"><center><p><strong>请输入密码: </strong><input
type="text" name="password2" size="8"><br/><input type="button" value="进入会员区" onClick="submitentry()"></p>
</center></div>
</form>
</td>
</tr>
</table>

其中alert(t3.charAt(i) + "=" + pass[phase1+Math.round(Math.sin(Math.PI/2)-1)].charAt(i))是得到真正的密码为dvvgdvv,然后在var s5 = "dvvgdvv"中定义密码,通过它的testit函数来进行^运算找到每个字母对应的数字,for (i=(1&2);i<window.max(Math.LOG10E);i++)
t4+=testit(s5.charAt(i))
alert(t4);
其中t4就是应该输入的密码,这个加密的过程很无聊,很容易就被破掉。
wangxj0600 2003-02-21
  • 打赏
  • 举报
回复
我在上面不是写了吗
http://expert.csdn.net/Expert/topic/1437/1437611.xml?temp=.7368585
yosure 2003-02-21
  • 打赏
  • 举报
回复
wangxj0600(旁观拍手笑疏狂,疏又何妨,狂又何妨):
你是如何把这个密码算出来的.我加分.

87,993

社区成员

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

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