Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^5: FastCGI and EXEs under Windows

by fizbin (Chaplain)
on Oct 27, 2005 at 18:39 UTC ( #503437=note: print w/ replies, xml ) Need Help??

in reply to Re^4: FastCGI and EXEs under Windows
in thread FastCGI and EXEs under Windows

With PerlApp it's much harder to recover source code than it is with other EXE creators (like pp) but it's not totally impossible. The theoretical method (which I've never tried, just had explained to me) is to load the perl-app created tool into an EXE debugger, run the program partway, dump out the memory contents and find where perl put the compiled opcode tree for the script, and then write a perl script that recreates that opcode tree and uses B::Deparse to rip it apart into perl code.

Unless you're implementing state secrets as CGI scripts, it's almost certainly easier for someone trying to obtain your source code to write whatever your script does themselves from scratch than it is for them to extract it out of a PerlApp executeable.

@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/

Comment on Re^5: FastCGI and EXEs under Windows
Select or Download Code
Re^6: FastCGI and EXEs under Windows
by Ace128 (Hermit) on Oct 28, 2005 at 04:36 UTC
    Err, excuse me, but pp just puts all stuff into a ".zip" (that is now called .exe). That is, all needed stuff in the created .exe is actually a runnable .zip... Although you can make it harder with some parameters for pp that "scramble" the scriptcode of yours... ie to bytecode.
      I think you misunderstood me - I was comparing PerlApp against other EXE creators (such as pp) from which it is very easy to extract source. I understand that it is trivial to obtain source from a pp-generated executeable.
      @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-08-23 01:50 GMT
Find Nodes?
    Voting Booth?

    The best computer themed movie is:

    Results (171 votes), past polls