PDA

View Full Version : Whats The Word?



edddie
08-26-2005, 03:39 PM
Hi Everybody!


I got a trickey question..

I can not figure out the word that is hiden in this codes.. :confused:

<script type="text/javascript">
var pw = prompt("Password?");
var nan = "wordpass";
if (pw.indexOf("s") == -1 && parseInt(pw) == 666)
{
alert('Correct password! Access granted!');
self.location = "/Hackerfight/?s=www&ss=testmissions&pw="+pw;
}
else
{
alert('Wrong password! Access denied!');
if (! confirm("Try again?"))
self.location = "/Hackerfight/";
else
self.location = "/Hackerfight/www/testmissions/";
}
</script>

I would be glad if any body could help me with this one.. :D

Twey
08-26-2005, 04:06 PM
if (pw.indexOf("s") == -1 && parseInt(pw) == 666)
The password mustn't have an s in it, and it must be 666.

cr3ative
08-26-2005, 06:31 PM
Something tells me that all this user's threads are is some "hackfight" competition.

You're meant to break the code yourself in those competitions, not ask others =P

cr3