The making of this site is in progress,do check it once in a week for new material.

"Cracking" Advanced JS-Crackme By The Sandman - Essay Written By KRAS|

Advanced JS-Crackme By The Sandman

Here's the code that I used to reverse this one,but I'm not sure as the congratulations page is not found,though I don't get the Invalid Password message.This is again my lucky day so excuse me again for some pass trying.No explanation for now as I have to be sure that this is the right approach.This essay will be updated.

<html>
<body>
<center>HI HI HI</center><p>
<script>
var params=new Array(16);
str="6025681284,953216,MSILH.LWNS";
delim=",";
p=0;
i=0;
val=str+delim;
document.writeln("val=", val);
document.writeln(val.indexOf(delim,p+1));
while (val.indexOf(delim,p+1)>0)
 { a=val.indexOf(delim,p);
 params[i]=val.substring(a,p);
 document.writeln("params[i]=", params[i]);
 document.writeln("a=", a);
 document.writeln("p=", p);
 p=a+1; i++; };
 document.writeln("i=", i);
 params[i]=null;
 document.writeln("params[1]=", params[1]);
//to the next level
 var alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789-ABCDEFGHI";/ 
 pw="mfggfdgfhzt";
// pw="obcbeaaaape";
 pass=pw.toUpperCase();
 mult=3;
 hash=0;
 for (i=0;i<pass.length;i++)
 { letter=pass.substring(i,i+1);
 c=alpha.indexOf(letter,0)+1;
 document.writeln("c=", c);
 hash=hash*mult+c; };
 document.writeln("hash=", hash);

</script> <body> </html>

KRAS| 1999krasi@freeshell.org