Forum Moderators: coopster & phranque

Message Too Old, No Replies

How to deparse perl bytecode ?

         

Loofort

8:07 am on May 21, 2008 (gmt 0)

10+ Year Member



Hi all.
I have perl file qwe.pm. It starts with following lines:

#! /usr/local/bin/perl
use ByteLoader 0.05;
<binary data >

So I suppose it compiled to perl bytecode. The question is how one cat view original source code of this file. I try to use console command 'perl -MO=Deparse qwe.pm' but it outputs nothing. Any thoughts ?

Dabrowski

2:49 pm on May 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm, had a quick look, it seems the Bytecode stuff is deprecated but there doesn't seem to be a decoder anyway.

It's been replaced by this:
[search.cpan.org...]

Which does have a command line to decrypt to a .pl file. It may be backwards compatible.

Dabrowski

2:55 pm on May 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I should mention the word 'copyright' here, if they've bothered to protect their code there's probably a good reason.