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:
Sunday 23.05.2010 on 00:00
[...] Javascript Missions 4 :: Var? [...]