ImagineBreaker
Java 9-25 Hackery, destroys module system + reflection filters
Install / Use
/learn @Rongmario/ImagineBreakerREADME
<img style="float: right;" src="https://i.imgur.com/rimNwts.png" width="40%" height="40%">
Imagine Breaker [幻想殺し]
I will destroy that illusion of yours.
With the love of ~~JNI~~ Unsafe & MethodHandles/VarHandles API from Java 9 - 23, this provides:
-
Public-facing
sun.misc.UnsafeAPI instance & maximum priviledge (TRUSTED)MethodHandles$Lookupinstance. -
Breaking down the Java Platform Module System (JPMS) to open up any specified module
-
Disguise as any specified Module, in order to fool
@CallerSensitivemethods -
Removal of Reflection Filters, allows retrieval of any fields from classes that were previously blocked:
jdk.internal.reflect.ConstantPooljdk.internal.reflect.Reflectionjdk.internal.reflect.UnsafeStaticFieldAccessorImpljava.lang.Classjava.lang.ClassLoaderjava.lang.reflect.Constructorjava.lang.reflect.Fieldjava.lang.reflect.Methodjava.lang.Modulejava.lang.Systemjava.lang.invoke.MethodHandles$Lookupjava.lang.reflect.AccessibleObject
Usage
build.gradle:
repositories {
maven {
url 'https://maven.cleanroommc.com'
}
}
dependencies {
implementation 'zone.rong:imaginebreaker:2.1'
}
Namesake: Toaru Majutsu no Index
