Skip to content

Library to modify Java classes at runtime, without the need of java agents & instrumentation

License

Notifications You must be signed in to change notification settings

StellarTweaks/Remake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remake

Library to modify Java classes at runtime, without the use of java agents.
Based on body's Remake

How does this work?

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

How do i use this?

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.

Contribute

There's 2 subprojects in this:

It would really help out if you contribute, thanks <3

About

Library to modify Java classes at runtime, without the need of java agents & instrumentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published