It looks like you're new here. If you want to get involved, click one of these buttons!
//Challenge_three Stage 1
function brb()
{
var c=confirm(\"Wrong page, redirect?\");
if (c==true)
{
window.location=\"http://www.iexploit.org/\";
}
else
if (navigator.appCodeName==\"Mozilla\" && navigator.appName==\"Netscape\")
{
alert(\"Congratulations, you have chosen the right browser\");
window.location=\"http://www.iexploit.org/index.php/javascript/level-3.2\";
}
else
{
wrong();
}
}
function wrong()
{
alert(\"Sorry, try harder\");
window.location=\"http://www.iexploit.org/index.php/javascript/level-3.1\";
}
//Challenge_three Stage 2
function login()
{
var name=prompt(\"Username:\",\"\");
var pass=prompt(\"Password:\",\"\");
if (name!=navigator.appCodeName)
{
user=\"root\";
pass=\"root\";
}
if (pass==navigator.appName)
{
document.write(\"Welcome \" + name);
//function to add points to the user his score
setTimeout('window.location=\"http://www.iexploit.org/index.php/javascript/level-4\"',2000);
}
}
//Coded by x3n0n
<html>
<head>
<title>test</title>
<script type=\"text/javascript\" src=\"Challenge_three.js\"></script>
</head>
<body onload=\"brb()\">
<!-- content -->
</body>
</html>
<html>
<head>
<title>test</title>
<script type=\"text/javascript\" src=\"Challenge_three.js\"></script>
</head>
<body>
<input type=\"button\" onclick=\"login()\" value=\"Login\"/>
</body>
</html>