Garlic is a powerful Java decompiler that easily transforms .class and .jar files into human-readable source code. Built in C, it delivers efficient performance with essential features like multi-threading support and easy-to-use command-line interface. Streamline your Java development and reverse engineering tasks with Garlic.
garlic-decompiler is a powerful Java decompiler built using C, designed to convert Java bytecode from .class, .jar, or .war files back into readable Java source code. This tool is essential for developers looking to understand or recover Java code from compiled binaries.
.class files: Easily retrieve source code from individual class files..jar) with options to specify output paths and manage threads effectively..war) to access underlying source code.To decompile a .class file and output the result to standard output:
garlic /path/to/jvm.class
For .jar files, you can use:
garlic /path/to/file.jar # Default output is the same directory as the file
garlic /path/to/file.jar -o /path/to/save # Specify output path for source code
garlic /path/to/file.jar -t 5 # Specify thread count, default is 4
For users familiar with javap, garlic provides similar functionality, but with improved speed:
garlic /path/to/jvm.class -p
The main debugging functionality can be tested by modifying the main function in src/jvm.c as follows:
int main(int argc, char **argv)
{
jar_file_analyse(path_of_jar, out_of_jar, 1);
return 0;
}
Adjustments allow for testing with control over threading and execution parameters.
Using garlic-decompiler streamlines the reverse engineering process of Java applications, making it a valuable tool for developers and security analysts alike.
No comments yet.
Sign in to be the first to comment.