Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

(wil) Re: Java Decompilation in Perl

by wil (Priest)
on Jun 06, 2002 at 14:00 UTC ( #172194=note: print w/replies, xml ) Need Help??


in reply to Java Decompilation in Perl

From my (limited) knoweldge of Java, if they haven't ran the class through some kind of obfuscator, then you should be able to decompile them. If they have obscured them in anyway, then you've got a bigger task on your hand. The process can be reverssed but is a little tricky.

Here's a list of some decompiler tools that I know of. There are probably a number of others out there, and you will probably have better results doing a google for this one.


It know there's a module on CPAN to write Perl classes in Java, but I haven't see any that decompiles java classes. I may be wrong however. But it seems to me like you need to decompile first using one of the decompilers above and then use the data in your Perl script.

You might also be interested in this article which compares 3 of the leading Java decompilers. It could help you determine which, if any, meet your needs.

Hope this helps.

- wil

Replies are listed 'Best First'.
Re: (wil) Re: Java Decompilation in Perl
by demerphq (Chancellor) on Jun 06, 2002 at 14:07 UTC
    Note that using such tecnhiques in the US may be a violation of the DMCA. Consult with a lawyer (in house counsel perhaps) before you do use such techniques. Certainly insist on a written formal statement from your boss and or the legal types in your company before you do. Otherwise you may find yourself (as the coder) in jail.

    Yves / DeMerphq
    ---
    Writing a good benchmark isnt as easy as it might look.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2023-02-09 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (44 votes). Check out past polls.

    Notices?