Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Retrieving hardware information through Perl

by ctgIT (Initiate)
on Jan 04, 2002 at 19:04 UTC ( #136278=note: print w/ replies, xml ) Need Help??


in reply to Re: Retrieving hardware information through Perl
in thread Retrieving hardware information through Perl

In fact, I do not try to protect a Perl script but a Java application. Since Java does not really have any mechanism to access the hardware and create a key I was hoping to do it through Perl and pass the CPU ID or something like that back to Java. Any ideas? Thanks, Chris


Comment on Re: Re: Retrieving hardware information through Perl
Replies are listed 'Best First'.
Re: Re: Re: Retrieving hardware information through Perl
by Juerd (Abbot) on Jan 04, 2002 at 20:24 UTC
    Perl hasn't got any native solutions to get hardware information.
    Under Linux, you can use the /proc filesystem, under Win32 I'm sure there's a win32api solution, etcetera.

    By the way, all that needs to be done to work around your so called protection would be changing the perl script, so embed it and encode it. Even then, it'll not be hard to work around it.

    2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

Re: Re: Re: Retrieving hardware information through Perl
by arhuman (Vicar) on Jan 04, 2002 at 19:19 UTC
    Anyone who can read/write the script can hack it to avoid your checking mechanisms. There's no use in copy protecting your scripts.

    Same goes for Java, as even .class files can be decompiled.

    see this page or this one for examples.

    "Only Bad Coders Code Badly In Perl" (OBC2BIP)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://136278]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2015-08-28 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (341 votes), past polls