Inject any JAR file into a running JVM.
NOTE: This program will most likely trigger your anti-virus
- Download the latest release or build it yourself (if you build it yourself, create a libs folder and move
runner/Run.java
into it) - Move all files into one folder
- Compile your JAR and move it into the same folder but rename it to
run.jar
- Launch your Java application (
javaw.exe
application) - Run
injector.exe
and the JAR file should be injected into the JVM (if not, steps were not followed correctly)
You will need to build the program yourself. Head into shared.h
and uncomment the line that looks like #define VERBOSE
. After this, rebuild the project.
When creating the JAR, include a resource run.txt
with one line: the location of your main class.
Example:
com.example.ExampleRun
This class must have a empty void function main
(this is the function that will first be called)
Example:
package com.example;
public class ExampleRun {
public static void main() {
System.out.println("Example injected.");
}
}
NOTE: The example JAR provided in the releases will just close the application it injects into.
My Java code does not execute!
- There is likely an error within your code, run the program in verbose mode.Nothing injects (not even console)
- There is likely anotherjavaw.exe
running.ClassNotFoundException
- The JVM you injected into does not have this class!My prints aren't showing even in verbose mode!
- Prints from other threads will not show up in verbose mode.