Solved

get harddisk serial or other characteristic info for copyprotection

Posted on 2001-08-14
10
197 Views
Last Modified: 2010-08-05
hi !
i want to copyprotect my compiled perl program. is there a way to get the harddisk serial number or the mac address of the local machine ?

kind regards
ItsMe
0
Comment
Question by:ItsMe
  • 5
  • 4
10 Comments
 
LVL 6

Expert Comment

by:christopher sagayam
ID: 6383419
? ?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6383554
foreach (`/sbin/ifconfig -a`) {m/^eth0\s+/ && do { @x=split(/\s+/,$_);$mac=$x[$#x]; };}
0
 

Author Comment

by:ItsMe
ID: 6384107
hi ahoffmann,
the code above didn't work. the script returns nothing and seems to hang.

kind regards
ItsMe
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6384200
which OS?
0
 

Author Comment

by:ItsMe
ID: 6385469
2000
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 51

Accepted Solution

by:
ahoffmann earned 30 total points
ID: 6385895
2000, what's that? At least more than a year old, probably too ancient ... ;-)

foreach (`ipconfig -all`) {m/\s+Physical address\s+/ && do { @x=split(/\s+/,$_);$mac=$x[$#x]; };}
#
# PLease check spelling in the m// statement
# keep in mind that you may have more than one interface, then you need to skip the pseudo MACs
0
 

Author Comment

by:ItsMe
ID: 6395890
hi ahoffman,
do you think there is another way to copyprotect compiled perl scripts, which will work on all systems ? I'm thinkin on perl specific functions so that I don't need windows software (sure is sure :-)...

kind regards
ItsMe
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6396035
what do you want to achieve, just inhibit that people change the script, or that people view the script?

> i want to copyprotect my compiled perl program.
ok, how did you compile it?
Compilation is usualy done by perl.exe at startup.

Copyprotect? That's difficult with scripts, 'cause everyone who understands the code is able to modify it in that way that it matches his requirements and not yours, bypassing the copy-check.

Why do you realy insist on having the functinality implemented in perl (instead of c or c++ or any other compiled language)?
0
 

Author Comment

by:ItsMe
ID: 6397077
hi ahoffmann,
i'm compiling the script with perl2exe, i think that perl just interprets the script :-) once the script is an exe file you can no longer modify it. i'm working on a server solution and don't want anybody to use my files without permission.

kind regards
ItsMe
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6397363
so using ipconfig might be ok for newbies.
You also may use some values of the registry (AFAIK perl has a NT-Registry module).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now