What is it? @.@

Here is the place where I record some tactics about wargame, systems, and other security issues.

2012-09-23

Hack This Site! - Javascript 1

Description:

Idiot Test
faith is learning Javascript, the only thing that is protecting her from hackers is luck.

Level 1

        Javascript Mission 1:

        Faith is learning Javascript 
           ____________________
Password: |____________________|
         Check Password
Solution:

  1. View page source code. Find the javascript code below.
    < button onclick="javascript:check(document.getElementById('pass').value)">Check Password< /button>
    function check(x)
    {
            if (x == "cookies")
            {
                            alert("win!");
                            window.location += "?lvl_password="+x;
            } else {
                            alert("Fail D:");
    }
  2. Input "cookies".
  3. Congratulations, you have completed this challenge.