Axino.net

Javascript Missions 4 :: Var?

by Arxleol on Wednesday 19.05.2010, under hackthissite.org, javascript, tutorial

The following mission is really simple. If you checkout source code:


RawrRawr = "moo";
function check(x)
{
        "+RawrRawr+" == "hack_this_site"
	if (x == ""+RawrRawr+"")
        {
		alert("Rawr! win!");
                window.location = "../../../missions/javascript/4/?lvl_password="+x;
        } else {
		alert("Rawr, nope, try again!");
	}
}

First statement represents that RawrRawr has value moo. Then we proceed to function declaration I am not sure what’s really meant by this statement “+RawrRawr+” == “hack_this_site”. However, if we continue to if condition it is quite simple that password should be moo. Because from the left and right side we add empty strings.

Similar Posts:

:, , , , ,
1 comment for this entry:

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Archives