in reply to Re: Blending perl and C (two approaches)
in thread Blending perl and C (two approaches)
Having the script change its "name" in the process table (by setting $0) would not be sufficient protection. Anyone savvy enough to figure out that a perl script is being run from a disk file can search the disk for recently created files and potentially find the perl source code. So the point is to avoid saving the program to a disk file.
UPDATE: Having said that, of course, there is a work-around that might supply some level of protection:
Even with that, though, the sort of trick demonstrated by dave_the_m below can be tweaked to reveal the source code -- e.g. replace /usr/bin/perl with a shell script that launches the given perl script using the perl debugger. (I haven't tried it, but this or something similar is bound to be possible and not that hard to do.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Blending perl and C (two approaches)
by dsheroh (Monsignor) on Oct 28, 2007 at 16:25 UTC | |
|
Re^3: Blending perl and C (two approaches)
by Argel (Prior) on Oct 29, 2007 at 21:08 UTC |