Skip to content

Injectable java debugger for linux

License

Notifications You must be signed in to change notification settings

shimenga/JInject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JInject

Injectable java debugger for linux

Compiling

Note: Do NOT download or compile as the root user.

If you are having problems compiling make sure you've got the latest version of g++.

How to update g++

==================

Ubuntu-Based / Debian:

sudo apt-get install cmake g++ gdb git libsdl2-dev zlib1g-dev patchelf libglfw3-dev 

Arch:

sudo pacman -S base-devel cmake gdb git sdl2 patchelf glfw-x11

Fedora:

sudo dnf install cmake gcc-c++ gdb git libstdc++-static mesa-libGL-devel SDL2-devel zlib-devel libX11-devel patchelf

then Compile with build script.

./neko -b

Debugger

with Transformer

import me.kotone.jisdk.TransformerManager; // add sdk to your jar

public class TheClass {

    public static Class[] main(TransformerManager tmngr) {
        tmngr.addTransformer(new TheTransformer());
        return new Class[]{WantsToRetransform.class};
    }
}

import me.kotone.jisdk.ClassFileTransformer;

public class TheTransformer implements ClassFileTransformer {

    @Override
    public byte[] transform(String classname, byte[] bufferToUse) {
        return bufferToUse;
    }
}

and add key with JIAgent-Class key with your class package.name in to make injector can locate your class.

with Main Class

just like how normal Main-Class is

About

Injectable java debugger for linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 58.6%
  • CMake 13.0%
  • Java 12.0%
  • Shell 11.6%
  • C 4.8%