Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
It's an interesting coincidence that this question was asked, because just yesterday I was wondering the same thing about an executable I created about a year ago with perlapp, and since then lost the source code for.  After googling for a short while, I was directed back to Perlmonks, where I found this node.

Just for fun (and being just a wee bit lazy to dig into the executable), I thought I'd try for a slightly different solution.  So I wrote a Perl script which would:

  1. Change to the temp directory holding the uncompressed files.
  2. Prompt the user to change the priority of the Perl process (to "High".  I later tried "Realtime" for fun, but that turned out to be a mistake, as I had thought).
  3. Prompt the user to run the executable created by perlapp.
  4. At this point, I would manually change the priority of the application to Low.
  5. The Perl script would continuously look for files as they were unpacked from the executable, and save their contents.

I'm sorry to say this yielded no success for me; the Perl script was unable to detect any files prior to their removal, despite the application running at an extremely low priority.

I don't know if this helps with the particular question of perl2exe, as I have no direct knowledge of that tool.  But if the mechanics of perl2exe are at all the same, perhaps a similar script would do a better job with intercepting the sourcefile while it's being extracted.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

In reply to Re: Extract a script from a perl2exe executable? by liverpole
in thread Extract a script from a perl2exe executable? by Marza

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-18 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found