By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,034 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,034 IT Pros & Developers. It's quick & easy.

help with some odd code

P: n/a
Hi,

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

for(i=0;i?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";

It works when the code is hidden as a hex-encoded string.. (e.g.
eval(decode_hex_func("a1ef421876fedcb"))), but when I decode it into readable
source and try and run it, it tells me "Conditional 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 =----
Sep 3 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Skeleton Man wrote:
It works when the code is hidden as a hex-encoded string.. (e.g.
eval(decode_hex_func("a1ef421876fedcb"))), but when I decode it into
readable source and try and run it, it tells me "Conditional
compilation is turned off"..


Some info on the subject of conditional compilation:

http://tinyurl.com/c2cu2
JW

Sep 3 '05 #2

P: n/a
>Some info on the subject of conditional compilation:
http://tinyurl.com/c2cu2


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 =----
Sep 4 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.