Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rongmario/imaginebreaker
Java 9-23 Hackery, destroys module system + reflection filters
https://github.com/rongmario/imaginebreaker
hacking java java-17 jpms methodhandles module reflection unsafe
Last synced: 2 months ago
JSON representation
Java 9-23 Hackery, destroys module system + reflection filters
- Host: GitHub
- URL: https://github.com/rongmario/imaginebreaker
- Owner: Rongmario
- License: lgpl-2.1
- Created: 2023-02-23T02:01:04.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-17T04:43:57.000Z (12 months ago)
- Last Synced: 2024-02-17T13:47:35.735Z (12 months ago)
- Topics: hacking, java, java-17, jpms, methodhandles, module, reflection, unsafe
- Language: Java
- Homepage:
- Size: 142 KB
- Stars: 23
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Imagine Breaker [幻想殺し]
### *I will destroy that illusion of yours.*
With the love of ~~JNI~~ Unsafe & MethodHandles/VarHandles API from Java 9 - 23, this provides:
1. Public-facing `sun.misc.Unsafe` API instance & maximum priviledge **(TRUSTED)** `MethodHandles$Lookup` instance.
2. Breaking down the Java Platform Module System (JPMS) to open up any specified module
3. Disguise as any specified Module, in order to fool `@CallerSensitive` methods
4. Removal of Reflection Filters, allows retrieval of any fields from classes that were previously blocked:- `jdk.internal.reflect.ConstantPool`
- `jdk.internal.reflect.Reflection`
- `jdk.internal.reflect.UnsafeStaticFieldAccessorImpl`
- `java.lang.Class`
- `java.lang.ClassLoader`
- `java.lang.reflect.Constructor`
- `java.lang.reflect.Field`
- `java.lang.reflect.Method`
- `java.lang.Module`
- `java.lang.System`
- `java.lang.invoke.MethodHandles$Lookup`
- `java.lang.reflect.AccessibleObject`## Usage
`build.gradle`:
```groovy
repositories {
maven {
url 'https://maven.cleanroommc.com'
}
}dependencies {
implementation 'zone.rong:imaginebreaker:2.1'
}
```Namesake: [Toaru Majutsu no Index](https://en.wikipedia.org/wiki/A_Certain_Magical_Index)