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

The Snake's JS-Crackme 1

This crackme is much more difficult than the previous one but if I can do it so can you.
Playing around a bit entering code and stuff I noticed that if i don't enter a code - I got the message "Sorry, the code is invalid !" and a different error message "Sorry, the Unlock-code is invalid !" if I enter something in the code field. Looking at the html source of the crackme we see that the button "Check It" calls the function - bdkklt(). Here is the part of the function that we are interested in:

 if (yesh==1){
    kltOk();}
 else{
    alert("Sorry, the code is  invalid !")
"Sorry, the code is invalid !" this is the message if enter nothing. The other part of the if statement calls the function kltOk() and its error message is "Sory, the Unlock-code is invalid !". Yeah right,so what bdkklt() does is to check if we entered sometning in the code field.With no further looking at this function we go to the next one kltOk(). As Snake says The Unlock-code is based no the Code we use,so lets choose a simple code:"abc". This now ia the difficult part of the crackme as it is based on three functions and the first and the third one are not hard at all as you saw for the first one and take my word for the last one.
 if (stU.length != tmis.length){
    alert("Sory, the Unlock-code is invalid !");}
 else{
    chckUN();
 }
We gotta make sure that stU.length - which is the Unlock-code is equal to tmis.length.
It's time to code my friends.
The for loop has some code you may not know,so let me explain:
charAt - returns the charachter at the specified position in string
indexOf - returns the position of specified substring in string
substring - returns the specified subset of the string between two marks What the first loop does is that it gives a value to the variable sach based on the length(that's imortant) of the code and the string tl. We should enter the following code - I never use HTML editors like FP Express or whatever you should code by hand.
 
 stC="abc";
 sach=0
 for (i=0;i