ASMInjector is a powerful Java application that allows you to inject code into existing JAR files using the ASM ( Abstract Syntax Tree Manipulation) bytecode manipulation library. 🧰 It provides a user-friendly graphical interface to load a JAR file, select a class and method, and embed your custom code into the selected method. 🚀
- 🗃️ Load and explore JAR files
- 📂 Browse and select classes and methods within the JAR
- 💻 Inject custom code into any method of your choice
- ⚙ Option to run the injected code in a separate thread
- 🔄 Generate a new JAR file with the embedded code
- 🖥️ Cross-platform GUI built with Swing
- Java Development Kit (JDK) 8 or later
- Clone the repository:
git clone https://github.com/DedInc/ASMInjector.git
- Navigate to the project directory:
cd ASMInjector
- Build the project using Gradle:
./gradlew shadowJar
After building the project, you can run the ASMInjector application with the following command:
cd build/libs
java -jar ASMInjector-1.0-all.jar
- Click the "Load JAR" button and select the JAR file you want to modify.
- Select the class and method you want to inject code into from the respective combo boxes.
- Enter the fully qualified name of your injection class and the name of the method to be injected.
- (Optional) Check the "Run in Thread" checkbox if you want the injected code to run in a separate thread.
- Click the "Embed Code" button to generate a new JAR file with the injected code.
- The path to the modified JAR file will be displayed in a message dialog.
Contributions are welcome! If you have any ideas, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.
- The ASM bytecode manipulation library
- The developers of the Swing GUI toolkit
- The open-source community for their invaluable contributions