Tema: password!!!
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/11/2009, 14:34
Avatar de sanchezg
sanchezg
 
Fecha de Ingreso: abril-2009
Mensajes: 76
Antigüedad: 15 años, 9 meses
Puntos: 0
Exclamación password!!!

hola ojala haya alguien que sepa porq yo ya estoy desesperada!!!!!!!!
jajaja tengo el siguiente codigo... del cual no se como puedo cambiar el password... ya que esta cifrado... please helpme!!!

var base= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9","A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z")

var z=23;
var y=28;
var f= new Array();
var K= new Array();
var login=new Array();
var lgnum=0;
for (x=0; x<10; x++){
f[x]=x<<9
f[x]+=23
}
for (x=10; x<36; x++){
y=y<<1
v= Math.sqrt(y)
v = parseInt(v,16)
v+=5
f[x]=v
y++
}
for (x=36; x<62; x++){
z=z<<1
v= Math.sqrt(z)
v = parseInt(v,16)
v+=74
f[x]=v
z++
}

function inc(){
iCounter--
if (iCounter > 0){
alert('Login / Password Incorrect\n\nPlease try again')
document.lgform.user.value=""
document.lgform.passwd.value=""
lgnum=0
}
else
location.href='denied.html'
}

function check(){
if (lgnum<login.length){
if (document.lgform.user.value==login[lgnum].usid)
pwdchk()
else{
lgnum++
check()
}
}
else
inc()
}


function pwdchk(){
var pass=document.lgform.passwd.value
var lpass=pass.length
for (l=0; l<lpass; l++){
K[l]=pass.charAt(l)
}
var code=0;
for (y=0; y<lpass; y++){
for(x=0; x<62; x++){
if (K[y]==base[x])
code+=(y+1)*f[x]
}
}
if (code==login[lgnum].pwd)
go()
else
inc()
}


function go(){
location.href=document.lgform.passwd.value+'.html'
}

function id(usid,pwd){
this.usid=usid;
this.pwd=pwd;
}

var iCounter=3
login[0]=new id("DIDACTICO",141553)----------------------->es esta parte!!!!!!!!!