Offline Perl obfusquator ?

J

Jazeker

Hello,

As I am making a piece of Perl code that contains some policies
(disallowing people to send spam, etc...) I want to higher the treshold
for people to change those lines of code. (some will... I know).

That would require me to have some script or program that can obfusquate
(even by just playing with the code layout) a few blocks of code. I am
not looking for an obfusquator that would completely change all variable
names, etc... but that would just make a few blocks of code very hard to
read so only Perl wizzards would know what to do (and I expect those
wizards not to be needing my software to annoy the world ;-) )

Any hints, links or other would be appreciated.

PS : not looking for an online obfusquator as well... just an offline
script would be ok.

Thanks,
Jaz
 
J

John W. Krahn

Jazeker said:
As I am making a piece of Perl code that contains some policies
(disallowing people to send spam, etc...) I want to higher the treshold
for people to change those lines of code. (some will... I know).

That would require me to have some script or program that can obfusquate
(even by just playing with the code layout) a few blocks of code. I am
not looking for an obfusquator that would completely change all variable
names, etc... but that would just make a few blocks of code very hard to
read so only Perl wizzards would know what to do (and I expect those
wizards not to be needing my software to annoy the world ;-) )

Any hints, links or other would be appreciated.

PS : not looking for an online obfusquator as well... just an offline
script would be ok.

http://search.cpan.org/~dconway/Acme-Bleach-1.12/


John
 
T

Tad McClellan

Jazeker said:
As I am making a piece of Perl code that contains some policies
(disallowing people to send spam, etc...) I want to higher the treshold
for people to change those lines of code. (some will... I know).

That would require me to have some script or program that can obfusquate
(even by just playing with the code layout) a few blocks of code. I am
not looking for an obfusquator that would completely change all variable
names, etc... but that would just make a few blocks of code very hard to
read


An all white screen can be hard to read...

so only Perl wizzards would know what to do (and I expect those
wizards not to be needing my software to annoy the world ;-) )

Any hints, links or other would be appreciated.


.... so Bleach it!

http://search.cpan.org/~dconway/Acme-Bleach-1.12/lib/Acme/Bleach.pm


(make backup copy of your program before you try it!)
 
C

Christopher Nehren


Keep in mind that any code obfuscator in the Bleach line is not perfect.
perl still needs a way to read the program, and if perl needs a way to
read the program, then there *is* still a way to programmatically read
the program. A user need only do a small amount of research before they
figure out how to read and change the program. Read the relevant FAQ
entry: perldoc -q 'hide the source'.

Best Regards,
Christopher Nehren
 
X

xhoster

Christopher Nehren said:
Keep in mind that any code obfuscator in the Bleach line is not perfect.

It was pretty clear that the OP already had this in mind. No need for
pointless harping.

Xho
 
T

Tad McClellan

Christopher Nehren said:
Keep in mind that any code obfuscator in the Bleach line is not perfect.


Of course not.

Anything called an "obfuscator" is not security at all.

If it was better (I hesitate to use "perfect") we would be
calling it "encryption" instead.
 
T

Tintin

David K. Wall said:
If I recall correctly, Acme::Morse does about the same thing, except
that instead of converting the code to spaces it converts it to Morse
code. I'm not sure which is more evil.


Well there's always Acme::Morse::Audible and my favourite would be
Acme::EyeDrops
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top