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:
Bookmarks