What is it? @.@

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

2012-10-24

Bright Shadows - JavaScript 1: "First one and very easy to do."

Description:
             Please enter your username!
        ______________________  
             |_____________________| Check
Solution:
  1. This challenge is really, really, really basic!
  2. View page source code and find the JavaScript code like below.
    <script type="text/javascript">
    function usercheck() {
    input_user=document.formular.user.value;
    if (input_user=="warmup") {
    window.location.href=input_user +".php";
    }
    else {
    alert("Go home!");
    window.location.href="http://www.disney.com";
    }
    }
    </script>
  3. You got it! The username equals to "warmup".
  4. Well done!