hackertest.net level 6 :: Linking javascript
by Arxleol on Thursday 15.01.2009, under hackertest.net, tutorial
Are you still here nice. Let’s solve this one quickly, as you can see you are again prompted for password now let’s check source code to see what will we find here.
Interesting thing is that in fact there is no function present in the source, only one variable is declared. However if you look carefully throughout source you will find this thing written:
<SCRIPT SRC="psswd.js" LANGUAGE="JavaScript" type="text/javascript"></script>
This is in fact call to include javascript file named passwd.js. Extension .js stands for the javascript file, using the code above you can include any external javascript file in this case it is probably something in connection with password.
Now how will we check the contents of the file? Simply you just copy the name of the file and enter it in the URL box in your browser. URL in the browser should look something similar to this: http://www.hackertest.net/psswd.js
Open this file by clicking enter to see contents. When you open file you should see code like this one below.
<!-- var pass; pass=prompt("Password:",""); if (pass=="hackertestz") { window.location="included.htm"; }else alert("Try again..."); //-->
Now since analysis of this function is almost the same as one of the functions in the previously done missions I will not analyse it in details. However if someone cannot find correct solution password is: hackertestz
If you have any additional questions about this or any other mission don’t hesitate to ask in comment.
Thursday 03.12.2009 on 00:14
[...] http://www.hackertest.net/save_as.htm level6 [...]