HACKERTEST.NET | Level 6: Linking javascript

Tired of prompts? Lets solve this one quickly and move to next mission. When you check the source code for his mission you will not find a function like the previous levels. It is because the we necessarily do not need to write the javascript codes in our main file. We can also write it in a separate js file and link it.

<SCRIPT SRC="psswd.js" LANGUAGE="JavaScript" type="text/javascript"></script>

Like its done here. The javascript function is written in a separate psswd.js file. So lets just open this file using directory traversal and move on.

Continue reading “HACKERTEST.NET | Level 6: Linking javascript”

HACKERTEST.NET | Level 5: SAvE-as

After solving the previous levels with javascript prompt level 5 isn’t difficult to solve. Some of you might face problems in it because if you click cancel the page redirects itself, giving you no time to check out the source code.

But if you are using Firefox (no idea about other browsers) you can still check the source code by pressing ctrl+U while the page is loading. Just open the source code and you’ll get the answer.

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";}


The password is SAvE-as hELpS a lOt.

Continue reading “HACKERTEST.NET | Level 5: SAvE-as”

HACKERTEST.NET | Level 4: ?

This post is just for the sake of consistency. Please continue with the next mission. For those who are still wondering. just press click here button on the mission page.

Note: I’m still wondering why the coder of hackertest.net created this mission.

Good luck!!!

HACKERTEST.NET | Level 2: Prompt!

Level 2 is still as simple as level1. You just need to understand it how it works and where to look. When the page loads a prompt box opens up and asks for a password. So you can simply open up the source code using ctrl+U and find where this source code is.

You will see something like this. This pass variable takes the value that is entered by the user and compares it with the string l3l.

<script language="JavaScript" type="text/javascript">
  var pass, i;
  pass=prompt("Please enter password!","");
  if (pass=="l3l") {
    window.location.href="http://www.hackertest.net/"+pass+".htm";
    i=4;
  }
</script>

For those of you who are still wondering the answer is l3l.

Good luck!!!