JavaScript Challenge 6 :: Simple strings
by Arxleol on Wednesday 03.02.2010, under hellboundhackers.org, javascript, tutorial
Once again we are required to examine javascript function and find correct password.
As in previous examples function may be found above form. Here is function we have to decode:
function checkPass(){ Location = document.form.password.value Location = "js6-" + "window.open" + ".php" if (document.form.password.value == Location ) { alert("Good Job!") window.open(Location) } else{ alert("Try Again!") } }
Interesting thing here is that we are comparing strings. Even though, it might seem that we are invoking some native functions of javascript.
Notice this line which forms password string:
Location = "js6-" + "window.open" + ".php"
From this we can easily figure out that string is combined into: js6-window.open.php. Now just remember to use mouse click on submit button and not enter ![]()