Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Code hiding in Perl

by sumanta (Novice)
on Jun 26, 2015 at 07:36 UTC ( [id://1132088]=note: print w/replies, xml ) Need Help??


in reply to Re: Code hiding in Perl
in thread Code hiding in Perl

I have gone through many such threads but didn't find any solution/approach which talks about modification of default interpreter to execute (in-memory, hence can't be seen) a password protected encrypted code .. I would like to know how will they decode it?

Replies are listed 'Best First'.
Re^3: Code hiding in Perl
by Corion (Patriarch) on Jun 26, 2015 at 07:41 UTC

    See B::Deobfuscate. Any approach to hiding Perl source code will be done through a filter which eventually calls eval on the decoded Perl code. Getting at the source code then just requires replacing eval with print.

      How will you use the de-obfuscator? The code is encrypted using some password protected custom logic not obfuscated, and it can only be run through custom interpreter (developed by me). Here the assumption is you can't decode the custom interpreter code.

        I would use overload::eval to get at the obfuscated Perl code. As long as your custom Perl interpreter can load modules, I can load other modules into it, which replace eval with my own code to print out the decrypted code.

Log In?
Username:
Password:

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

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

    No recent polls found