Hello.
I am new to javascript, and need help with something:)
I came across this "hack my site"-site, and cant get past level 4 (lol);P I've got the source code:
(the javascript part, which is the one requiring a password)
and read from the hint that i had to include code with javascript. The only thing i see in that code that could be preventing me from getting "password correct" when typing in haxx000r in the password prompt, is that the string should look like this: if(password == "haxx000r") (experience from Python). Am I right? and how do i solve this?
I am new to javascript, and need help with something:)
I came across this "hack my site"-site, and cant get past level 4 (lol);P I've got the source code:
Code:
<script src="JavaScript" type="Text/JavaScript"></script>
<script language="JavaScript" type="Text/JavaScript">
password=prompt('LEVEL: 4\n Enter password:','');
if (password == haxx000r)
{
location.href= "?page=levels&level=4&pw=" + password;
}
else
{
location.href= "?page=error";
}
</script>
and read from the hint that i had to include code with javascript. The only thing i see in that code that could be preventing me from getting "password correct" when typing in haxx000r in the password prompt, is that the string should look like this: if(password == "haxx000r") (experience from Python). Am I right? and how do i solve this?
Comment