Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 950 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 950 Bytes

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