Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add license protection to pp compiled executables

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

I was using pp to compile my programs into exe files.
Now I have a need to add a licensing mechanism to the resulted exe files.
Where do I start with this task ?
thanks

Long live king Moshiach !
 
You mean like when you right click on executable file people can see author, copyright, script version etc.
If it is the question, I have been wroking with Active state PDK last few years and it does a great job


dmazzini
GSM/UMTS System and Telecomm Consultant

 
If the question is belong to allow just certain people to use the executable files, you could generate licences files that will be mandatory in order to run the application.

I distribute xml licences with my applications, they looks like this:

Code:
<?xml version="1.0" encoding="UTF-8"?>
    <!-- Program Name Tools  Licence -->
    <Licence version="1.0" Author="dmazzini" standalone="yes">   
    	<p name="LastName">USERLASTNAME </p>
    	<p name="FirstName">FIRSTNAME</p>
    	<p name="Email">username@domain.com</p>
    	<p name="Licence">793rboyyuxu45tNOE8039789</p>   
    </Licence>

[code]

So, in my executable program I have decrypt routine to check licence number based on username, domain and window user. Then scripts validates the license.

In order to generate licences I use a tool with some encrypt algorithm same as executable file. Users must request access to the tool and then I create it based on username, domain etc, you could even generate adding PC mac address in order to do it more secure.

I will suggest you use any of the standard crypt and decrypt perl modules and modify it adding your own crypt/decrypt algorithm.


 


dmazzini
GSM/UMTS System and Telecomm Consultant
 
You should keep in mind that pp-compiled executables can be easily opened up with programs like WinZip, where the script's source code as well as all its modules and the Perl interpreter and anything of that nature can be extracted and viewed.

pp has command-line options to try to obfuscate your code, for example to Acme::Bleach it, so that if somebody finds out they can just extract your exe and get your code, it'll still defend it from the casual prying eye.

As for Acme::Bleach, there's an easy to find "unbleach.pl" that decodes it. And for all the other obfuscation modules, all it takes is a savvy Perl hacker running a debug version of the interpreter to decipher your source code. And when your user has your source code, you can kiss any licensing codes goodbye and it'll be cracked and gotten around in no time.

-------------
Cuvou.com | My personal homepage
Project Fearless | My web blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top