Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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
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)
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:~$

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 chanting in the Monastery: (10)
As of 2014-12-21 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (102 votes), past polls