hackertest.net level 2 :: Analysis Sherlock
by Arxleol on Thursday 08.01.2009, under hackertest.net, tutorial
Let’s not take a look at second level on hackertest.net this one is also fairly simple however the point is to figure out where to look up for the solution.
After you entered correct password in the level 1 you have reached another web page where prompt window opened asking you for password. Whatever you do text to refresh page will still be there and even after you refresh it. So as a real hacker apprentice you take a peak in the source code of the page.
If you analyse source code scan trough source code you will probably find following javascript function:
var pass, i; pass=prompt("Please enter password!",""); if (pass=="l3l") { window.location.href="http://www.hackertest.net/"+pass+".htm"; i=4; }
In the beginning two variables are initialized in the second row prompt window is opened that asks you to enter password and assign value from the window to the pass variable. If we continue on the next row you may notice that pass is compared to the string value l3l. And in case that it is correct it opens us a new window meaning that we have found correct solution.
Simple as that copy the string and refresh page once more and input string in prompt window and you should have made it. Proceed to the next level ![]()
Thursday 03.12.2009 on 00:14
[...] http://www.hackertest.net/null.htm level2 [...]