Hi! On Sun, Jul 21, 2002 at 10:58:24PM -0400, Jonathon M. Robison wrote: > Anyone know offhand a good way to hide your perl code when using > mod_perl? Acme::Bleach isn't doing it - httpd is failing to start on
You could write an obfuscator. Maybe Acme::EyeDrop works? See http://domm.zsi.at/source_code/obfu/O.pm for an obfuscated mod_perl handler. A very simple thing to do is eg: $yourcode=s/\s+/~/gs; Than, in to be obfuscated module, do: $_='package~Your::Code'.$yourcode;s/~/ /g;eval; That's basically what I did in my mod_perl obfu. This definitly isn't unbreakable, but (if you add some more obfu-tricks and maybe do some encryption on the code to be evaled) would require some knowledge to deparse. I guess you started this thread on perlmonks? http://www.perlmonks.org/index.pl?node_id=183932 If not, read it. -- #!/usr/bin/perl http://domm.zsi.at for(ref(bless[],just'another'perl'hacker)){s-:+-$"-g&&print$_.$/}