vailixi Posted September 9, 2015 Posted September 9, 2015 (edited) Are there any good open source Linux Java disassemblers? Edited September 9, 2015 by vailixi Quote
cooper Posted September 9, 2015 Posted September 9, 2015 (edited) I think the only player currently is JD. http://jd.benow.ca/ Edited September 9, 2015 by cooper Quote
Karit Posted September 9, 2015 Posted September 9, 2015 Yep JD is the best I have found. JD-GUI is great https://github.com/java-decompiler/jd-gui/releases Quote
vailixi Posted September 11, 2015 Author Posted September 11, 2015 (edited) Thanks guys. Is there an easy way to translate Java to ASM like you can with C? Edited September 11, 2015 by vailixi Quote
cooper Posted September 11, 2015 Posted September 11, 2015 Well, there's ASM which allows you to basically work the bytecode. It's used extensively for on-the-fly instrumentation by for instance junit (to see how much of the code is covered by the unittests) and hibernate (for adding the syncing between properties and table data) but also component injecting frameworks such as Spring where if you annotate a property properly the annotated property, when the class is loaded by the classloader, is modified to something that initializes itself during construction. So for example this: @Inject private final GenericServiceType aGenericServiceINeed = null; is changed to this when the class is loaded: private final GenericServiceType aGenericServiceINeed = new ASpecificServiceIDefinedSomewhere(); It's cool stuff and ASM does make it really easy to work with. You just need to be familiar with the concepts behind a SAX parser. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.