Help me out with this JavaScript!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SiN

    Help me out with this JavaScript!

    I have a problem with this JavaScript

    <SCRIPT>

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

    eval(whatisthis );

    </SCRIPT>

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

    Thanks
  • Evertjan.

    #2
    Re: Help me out with this JavaScript!

    SiN wrote on 30 jun 2003 in comp.lang.javas cript:
    [color=blue]
    > I have a problem with this JavaScript
    >
    > <SCRIPT>
    >
    > var texts = "091c53d492ce7h 2";
    > var interpret = "";
    > var whatisthis = "var xorm = prompt('Enter the password:',''); for
    > (x=1; x<6; x++) {interpret += (texts.indexOf( x)-1);}if
    > (xorm==interpre t){interpret = interpret +
    > '.php';location .href=interpret ;}else{location .href='hahaha.p hp';}";
    >
    > eval(whatisthis );
    >
    > </SCRIPT>
    >
    > which value does "interpret" have after the algorithm?
    > please help me out (i'm a n00b)
    >[/color]

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


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    Working...