Fabrice Scemama <[EMAIL PROTECTED]> writes:

> There's another way. We can't build pre-compiled modules easily,
> but even when you code in C or Java, desassemblers can extract
> some source from the binaries you deliver. As far as perl scripts are
> concerned, a workaround consists in trivially removing all comments
> and \n from the source, which makes it as hard to understand as
> raw C desassembled code.

Unfortunately, this doesn't work.  cperl mode in emacs can prettify
perl code, not to mention B::Deparse.  For instance:

perl -MO=Deparse -e 'print while 1'
prints...
-e syntax OK
print $_ while 1;

It basically deparses the perl parse tree.  It gives pretty good
output; not perfect, but getting there.  Plus it expands and
simplifies some things, such as the implied $_ above.  It's quite
useful for figuring out messy obfuscated perl.

Even compiled perl would suffer from this problem.  At least when you
compile to C or Java the parse tree doesn't follow you around :)

Chip

-- 
Chip Turner                   [EMAIL PROTECTED]
                              Programmer, ZFx, Inc.  www.zfx.com
                              PGP key available at wwwkeys.us.pgp.net

Reply via email to