Library to modify Java classes at runtime, without the use of java agents.
Based on body's Remake
This work by loading our own Java native library, then calling retransformClasses with a ClassFileLoadHook to modify the class bytes and edit the class bytecode
To use this, please check out the pretty self explainatory example here.
This first calls the test
function, then edits its bytecode to change the strings and calls it again.
test()
The expected result without Remake would be printing Hello, World!
twice, yet this is the response:
Hello, World!
[Transformer] Found class: sh/body/test/Main
Changed ldc: Hello, World!
Hooked by remake <3
As we can see here, Remake modified the string and as the test function was called for the 2nd time, it outputed something totally different.
You can also use this library to modify other values or logic flow, basically recode the whole program while it's currently running, just like HotSwap.
There's 2 subprojects in this:
- the native library, a Visual Studio project
- the java libary, an Intellij Idea project
It would really help out if you contribute, thanks <3