JavascriptMission::go go away .js攻略

問題

Fiftysixer decided to try his hand at javascript!
All was going well until he realized that he forgot to remove the unused code, which resulted in a confusing mess.
He didn't mind, in fact, he did his best to make it even MORE confusing!

その後に、例のごとくパスワード入力欄とボタン。

攻略

JavascriptMission::Idiot Test攻略 - なんというていたらくと同じように、
onclickで呼び出しているcheckpass関数を見に行くのだけれど・・・

RawrRawr = "moo";
function check(x)
{
"+RawrRawr+" == "hack_this_site"
if (x == ""+RawrRawr+"")
{
alert("Rawr! win!");
window.location = "about:blank";
} else {
alert("Rawr, nope, try again!");
}
}

function checkpassw(moo)
{
RawrRawr = moo;
checkpass(RawrRawr);
}

ん?checkpassw関数はあるけど、checkpass関数がない!
と、あわてずに1つ上の行を見てみると、

<script type="text/javascript" src="http://hackthissite.org/missions/javascript/6/checkpass"></script>

とあるので、こちらのリンク先のソースも見る。

checkpass

dairycow="moo";
moo = "pwns";
rawr = "moo";

function checkpass(pass)
{
if(pass == rawr+" "+moo)
{	
alert("How did you do that??? Good job!");
window.location = "../../../missions/javascript/6/?lvl_password="+pass;
} else {
alert("Nope, try again");
}
}

ってことで、パスワードは"moo pwns"