hack-test.com 5 :: annoying window
by Arxleol on Wednesday 12.05.2010, under hack-test.com, javascript, tutorial
As you can see whenever you try to open link for 5 level you face problem. Since as soon as window is loaded you are asked for password. And you have no apparent way of seeing source code because you are transfered back to level 4.
Solution as always is simple and you should just click with right click on the link named click here
and then click on Save link as… this can be different on different browsers I am currently using Google Chrome. Now you’ve saved file somewhere on your computer and you can open it in any text editor except Notepad.
When you finally open page in text editor you will find following code:
var pass, i; pass=prompt("Password: ",""); if (pass=="SAvE-as hELpS a lOt") { window.location.href="save_as.htm"; i=4; }else {alert("Try again"); window.location.href="abrae.htm";} var pass, i;pass=prompt("Password: ","");if (pass=="SAvE-as hELpS a lOt") {window.location.href="save_as.htm";i=4;}else {alert("Try again");window.location.href="abrae.htm";}
Notice that you are prompted for password and then value you enter is saved in variable pass. In the next statement pass is compared to stringĀ SAvE-as hELpS a lOt which is in fact your password.
Friday 25.06.2010 on 08:11
Just for a quick note, another way of saving the page is right clicking on your desktop and then go to:
New -> Shortcut
And then for the location of the file, input this:
http://www.hackertest.net/abrae.htm
Then open the file in notepad. The first time I read this I tried to ‘Save Page As…’ while the error was up.
Friday 25.06.2010 on 08:13
Also, for my first comment, you have to change ‘abrae.htm’ to the ending of the actual site name that you can see in the URL bar during the popup.