I’ve been doing some class bytecode stuff lately, trying to decompile class files into Java files. I tried a lot of tools, such as JD-GUI and its plug-ins as well as various online decomcompilations, but I still felt that it was not cool enough. After all, I am a person who relies on terminals, so I tried to find some tools that can realize decomcompilations in terminals.
Google was good, and soon found a tool that I was very happy with.
- It is a JAR package
- It’s called CFR(Class File Reader)
- Decompiling class files and JAR packages is supported
The following describes two common commands
Decompile the class file
|
|
Decompile the JAR package
|
|
After running the preceding command, you can find the corresponding Java file in the outputdir directory.
Wrapped as script
Decompile a class file
|
|
Decompile a JAR package
|
|
resources
- www.benf.org/other/cfr/i…