Help me out with this JavaScript!

S

SiN

I have a problem with this JavaScript

<SCRIPT>

var texts = "091c53d492ce7h2";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the password:','');for
(x=1; x<6; x++) {interpret += (texts.indexOf(x)-1);}if
(xorm==interpret){interpret = interpret +
'.php';location.href=interpret;}else{location.href='hahaha.php';}";

eval(whatisthis);

</SCRIPT>

which value does "interpret" have after the algorithm?
please help me out (i'm a n00b)

Thanks
 
E

Evertjan.

SiN wrote on 30 jun 2003 in comp.lang.javascript:
I have a problem with this JavaScript

<SCRIPT>

var texts = "091c53d492ce7h2";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the password:','');for
(x=1; x<6; x++) {interpret += (texts.indexOf(x)-1);}if
(xorm==interpret){interpret = interpret +
'.php';location.href=interpret;}else{location.href='hahaha.php';}";

eval(whatisthis);

</SCRIPT>

which value does "interpret" have after the algorithm?
please help me out (i'm a n00b)

........
eval(whatisthis);
alert(interpret)
</SCRIPT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top