Skip to content

A simple instrumentation project using Attach API + Javassist.

License

Notifications You must be signed in to change notification settings

strendey/Instrumentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project

This project is divided into three simple programs:

  • A simple app to simulate something like an ATM.
  • A Java agent that uses Javassist to make low-level changes (bytecode) at runtime.
  • An injector that uses the Attach API to attach the agent to the JVM.

Recommendation

Instrumentation in Java is not as simple as it sounds, even using Javassist.
If you are going to use instrumentation in a more complex project, I recommend using ASM and understanding the Java Virtual Machine Instruction Set.

Thanks

superblaubeere27 for lighting the Attach API.

License

MIT

About

A simple instrumentation project using Attach API + Javassist.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages