help with some odd code

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

    help with some odd code

    Hi,

    I came across the following line of code in one of those HTML 'encryption'
    scripts:

    for(i=0;i?@ABCD EFGHIJKLMNOPQRS TUVWXYZ[\\]^_`abcdefghijkl mnopqrstuvwxyz{ |}~";

    It works when the code is hidden as a hex-encoded string.. (e.g.
    eval(decode_hex _func("a1ef4218 76fedcb"))), but when I decode it into readable
    source and try and run it, it tells me "Conditiona l compilation is turned off"..
    I tried escaping the @ symbol (e.g. \@ABCD), but that then tells me "Invalid
    character".

    I realise the code above is a 'for' loop, but it doesn't have a closing bracket
    or normal syntax.. (e.g. for(i=0;i<=99;i ++)).. my best guess (as I can't get it
    to run) is that it's meant to loop over each of the characters in the string..
    (e.g. for (i=A;i<=Z;i++) not sure if you can iterate over letters like that in
    JS ?)

    Hopefully someone can shed some light on this...

    Regards,
    Chris



    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  • Janwillem Borleffs

    #2
    Re: help with some odd code

    Skeleton Man wrote:[color=blue]
    > It works when the code is hidden as a hex-encoded string.. (e.g.
    > eval(decode_hex _func("a1ef4218 76fedcb"))), but when I decode it into
    > readable source and try and run it, it tells me "Conditiona l
    > compilation is turned off"..
    >[/color]

    Some info on the subject of conditional compilation:




    JW



    Comment

    • Skeleton Man

      #3
      Re: help with some odd code

      >Some info on the subject of conditional compilation:
      [color=blue]
      >http://tinyurl.com/c2cu2[/color]

      I allready checked out that page and it seems completely unrelated to the code
      I'm working with.. (the @ symbol just triggers the error message about it)..

      Regards,
      Chris



      ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
      http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
      ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

      Comment

      Working...