It looks like you're new here. If you want to get involved, click one of these buttons!
//JS challenge one
function justafunction()
{
var name=prompt(\"Username:\",\"admin\");
if (name==\"root\")
{
var pass=prompt(\"Password:\",\"admin123\");
if (pass==\"toor\")
{
alert(\"Welcome \" + name + \", let's go on to the next level\");
//function to add points to the user his score
window.location=\"http://www.iexploit.org/index.php/javascript/level-2\";
}
else
{
alert(\"Sorry \" + name + \", \" + pass + \" is not the right password\");
}
}
else
{
alert(\"User \" + name + \" not found, Try again\");
}
}
//Coded by x3n0n