Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Javascript Obfuscator problem Date: Mon, 24 Jun 2013 15:12:59 -0600 Lines: 61 Message-ID: X-Trace: individual.net kugoL4TeZZPJ2IDN4NhqrguQ73mAzQ42Aw89CC2sxC9YtqSvuP Cancel-Lock: sha1:BEIGzzDWpYzSd7eaBRLonCQ9Se4= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:20420 Hi: I was testing out the 'obfuscator' yesterday at www.javascriptobfuscator.com During my testing, the site 'failed to 'obfuscate' my lengthy JS code, and failed on the following lines (which I abstracted from about 600 lines): **************************************************** pwidths = [31,68] ; tables = [getobj("iclbtable")] ; nlen = tables.length ; for (i= 0;i < nlen;++i) { for (j=0,cells = tables[i].rows[0].cells,nlen2 = cells.length;j < nlen2;++j) { cells[j].style.width = "" + pwidths[j] + "%"; } } **************************************************** The error passed back to me is below ******* error from javascriptobfuscate.com ********* JScriptCodeDom.CodeParseException: Unexcepted Token : Semicolon , Requires QuoteEnd , Line 5, Char 65 ---> System.Exception: Unexcepted Token : Semicolon , Requires QuoteEnd at JScriptCodeDom.CodeParser.ReadAndCheckToken(CodeTokenType equalto) at JScriptCodeDom.CodeParser.ContinueExpressionCore(CodeExpression leftexp) at JScriptCodeDom.CodeParser.ContinueExpression(CodeExpression leftexp) at JScriptCodeDom.CodeParser.ParseFullExpression(Boolean bthrowerror) at JScriptCodeDom.CodeParser.InternalParseStatementCore() at JScriptCodeDom.CodeParser.InternalParseStatement() at JScriptCodeDom.CodeParser.ParseStatement() at JScriptCodeDom.CodeParser.ParseToBlock(CodeBlock block) at JScriptCodeDom.CodeParser.ParseForStatement() at JScriptCodeDom.CodeParser.InternalParseStatementCore() at JScriptCodeDom.CodeParser.InternalParseStatement() at JScriptCodeDom.CodeParser.ParseStatement() at JScriptCodeDom.CodeParser.Parse(String code) --- End of inner exception stack trace --- at JScriptCodeDom.CodeParser.Parse(String code) at JScriptProtector.Protector.Protect(String[] codes) at JScriptProtector.Protector.Protect(String code) at Jsps._Default.Button1_Click(Object sender, EventArgs e) *********************************************** I don't understand why there is an 'unexcepted' (or does it mean 'unexpected') token at the end of line 5 Any guesses here (or is there an error my pea-brain can't find in that line ) ?? Thanks, -- Mel Smith