Skip to content

roger1337/Agentless-Instrumentation-with-JNI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Agentless Instrumentation with JNI

This project instantiates an Instrumentation object without the use of the Java Attach API through a JNI method. It does this through creating a mock internal representation of a java agent. I hacked this together within a few hours so please feel free to contribute, and star if this helped you.

Some code from OpenJDK is integrated throughout the project, such as the JPLIS structures. Find the OpenJDK jdk here: https://github.com/openjdk/jdk

How do I use this?

Compile the DLL in the dll directory (you have to use the /includes folder from a JDK to compile it) Then create a class called InstrumentationManager with a native method getInstrumentation:

image

This code has been tested on Java 1.8 only with the tests in the tests folder.

About

This project instantiates an Instrumentation object without the use of the Java Attach API through a JNI method.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published