Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (2)

Powered by Vanilla. Made with Bootstrap.
JS Challenge 1
  • x3n0n
    Posts: 110
    Hey everyone, I have a series of JS hacking challenges lined up.
    So here is the firts one:

    //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


    So this is just a basic and simple challenge that anybody should be able to complete. You just lookup the username and password in the source code and you go on to the next level.
  • Looks good man. Can't wait to see what other challenges you have for us.