function connexion( ) {
var username = prompt( "Username :" , "" ) ;
var password = prompt( "Password :" , "" ) ;
var TheLists = [ "GOD:HIDDEN" ] ;
for ( i = 0 ; i < TheLists.length ; i++ )
{
if ( TheLists[ i] .indexOf ( username) == 0 )
{
var TheSplit = TheLists[ i] .split ( ":" ) ;
var TheUsername = TheSplit[ 0 ] ;
var ThePassword = TheSplit[ 1 ] ;
alert( TheUsername) ;
alert( ThePassword) ;
if ( username == TheUsername && password == ThePassword)
{
alert( "Vous pouvez utiliser ce mot de passe pour valider ce challenge (en majuscules) / You can use this password to validate this challenge (uppercase)" ) ;
}
}
else
{
alert( "Nope, you're a naughty hacker." )
}
}
}
ZnVuY3Rpb24gY29ubmV4aW9uKCl7CiAgICB2YXIgdXNlcm5hbWUgPSBwcm9tcHQoIlVzZXJuYW1lIDoiLCAiIik7CiAgICB2YXIgcGFzc3dvcmQgPSBwcm9tcHQoIlBhc3N3b3JkIDoiLCAiIik7CiAgICB2YXIgVGhlTGlzdHMgPSBbIkdPRDpISURERU4iXTsKICAgIGZvciAoaSA9IDA7IGkgPCBUaGVMaXN0cy5sZW5ndGg7IGkrKykKICAgIHsKICAgICAgICBpZiAoVGhlTGlzdHNbaV0uaW5kZXhPZih1c2VybmFtZSkgPT0gMCkKICAgICAgICB7CiAgICAgICAgICAgIHZhciBUaGVTcGxpdCA9IFRoZUxpc3RzW2ldLnNwbGl0KCI6Iik7CiAgICAgICAgICAgIHZhciBUaGVVc2VybmFtZSA9IFRoZVNwbGl0WzBdOwogICAgICAgICAgICB2YXIgVGhlUGFzc3dvcmQgPSBUaGVTcGxpdFsxXTsKICAgICAgICAgICAgYWxlcnQoVGhlVXNlcm5hbWUpOwogICAgICAgICAgICBhbGVydChUaGVQYXNzd29yZCk7CiAgICAgICAgICAgIGlmICh1c2VybmFtZSA9PSBUaGVVc2VybmFtZSAmJiBwYXNzd29yZCA9PSBUaGVQYXNzd29yZCkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgYWxlcnQoIl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