Your Ad Here Your Ad Here
Results 1 to 4 of 4

Thread: Javascript Password

  1. #1
    Im playing Mod-x and being the usual non experienced noob im stuck on level 1. I understand javascript to a point and the point is just on this page .

    The page code for the password script is:
    Code:
    <HTML>
    <HEAD>
    <TITLE>Null</TITLE>
    <script>
    
    var string = "8ac249fbd363fx52j1";
    var enigma = "";
    var whatisthis = "var myxor = prompt('Password:','');for (y=1; y<5; y++) {enigma += (string.indexOf(y)+1);}enigma += 5;if (myxor==enigma){enigma = enigma + '.php';location.href=enigma;}else{location.href='hahaha.php';}";
    
    eval(whatisthis);
    
    </SCRIPT>
    </HEAD>
    <BODY> </BODY>
    </HTML>
    What i need is help getting the string decoded using the information in the code. I'm not lookin for the answer but instead so hints or information on how i turn the script around and display the password for me

    Thanks for any help
    Johannes001 :helpsmile:
    ~-~J~0~H~4~N~-~

  2. Internet, Programming and Graphics   -   #2
    h1
    Guest
    Make it simpler.
    Code:
    var enigma = "";
    for (y=1; y<5; y++)
    {
       enigma += ("8ac249fbd363fx52j1".indexOf(y)+1);
    }
    enigma += 5;
    alert(enigma + '.php');

  3. Internet, Programming and Graphics   -   #3
    Thx Haxor needed a example to get me there lol
    I think i understand it but will have a better look in a while.
    Nyways thanks very much
    ~-~J~0~H~4~N~-~

  4. Internet, Programming and Graphics   -   #4
    h1
    Guest
    I just handed the answer to you... and if you can't do this you'll get hit really hard with level two's ASCII shift encryption.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •