Skip to content

Releases: Swofty-Developments/MinecraftInjectionPOC

v2.0.0 - Complete Native Rewrite

02 Feb 06:35

Choose a tag to compare

What's Changed

Complete rewrite from Java agent-based injection to native Linux ptrace injection.

Highlights

  • Native ptrace injector — injects a shared library into a running JVM process without Java agents
  • JNI bootstrap — attaches to the JVM from native code, creates an isolated ClassLoader, and defines classes at runtime
  • Clean unload — direct munmap-based self-unload that bypasses dlclose to avoid glibc crashes
  • Obfuscated MC 1.8.9 support — reflection-based discovery of Minecraft internals (chat, action bar, key input, scheduled tasks)

Components

  • src/injector.c — ptrace-based .so injector using memfd + pthread_create
  • src/payload.c — injected library that bootstraps Java code via JNI
  • src/unloader.c — external unloader utility
  • java/Bootstrap.java — Java-side mod bootstrap with reflection-based MC integration

v1.0.0

01 Feb 16:34

Choose a tag to compare

Initial release of the Minecraft JVMTI Injection POC.

Files:

  • injector.jar — Run this on the host to attach to a running Minecraft JVM
  • agent.jar — Full agent loaded by the stealth classloader
  • bootstrap.jar — Minimal bootstrap classes (must be in the same directory as agent.jar)

Usage:

java --add-opens java.base/java.lang=ALL-UNNAMED -cp injector.jar dev.injector.Injector agent.jar

Requires JDK 21 on the host. Minecraft 1.8.9 must be running on Java 8.