Digital
09-18-2002, 08:08 PM
i am learning java and i thought it was similar to javascript too. so i took a look at this script, but i couldnt figure it out. Could you tell me what the variable interpret is after its done running the script? thanks alot!
<HTML>
<HEAD>
<TITLE>Null</TITLE>
<SCRIPT>
var texts = "a43b12cde7fd7d6210";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the password:','');
for (x=1; x<5; x++)
{
interpret += (texts.indexOf(x)+1);
}
interpret += 5;
if (xorm==interpret)
{
interpret = interpret + '.php';location.href=interpret;
}
else{location.href='hahaha.php';}";
eval(whatisthis);
</SCRIPT>
</HEAD>
<BODY> </BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>Null</TITLE>
<SCRIPT>
var texts = "a43b12cde7fd7d6210";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the password:','');
for (x=1; x<5; x++)
{
interpret += (texts.indexOf(x)+1);
}
interpret += 5;
if (xorm==interpret)
{
interpret = interpret + '.php';location.href=interpret;
}
else{location.href='hahaha.php';}";
eval(whatisthis);
</SCRIPT>
</HEAD>
<BODY> </BODY>
</HTML>