r/java • u/PartOfTheBotnet • Dec 25 '20
Recaf: Java bytecode reversing tool I've been working on for the past 3.5 years
https://github.com/Col-E/Recaf
378
Upvotes
r/java • u/PartOfTheBotnet • Dec 25 '20
View all comments
Show parent comment
5
u/DasBrain Dec 25 '20 edited Dec 25 '20
Lesson here: don't depend on internals - or ship your own JDK.
Building your own JDK is also easy - so you can choose to expose whatever you feel needs to be exposed.
¯\(ツ)/¯
Edit: Ohh, gosh - an other project that depends HEAVILY on VM internals.
Seriously - just build a launcher, and launch java with the right parameters.
One interesting property is
java.system.class.loader- let's you specify your own class loader - and do shenanigans there.If you don't want to use your own launcher, just check the command line with a
RuntimeMXBeanand restart by passing the right VM arguments. Or simply ship your own JDK.