JAVA反编译神器CFR

- github地址:"https://github.com/leibnitz27/cfr/releases" 截止目前,该项目最后一次更新是在2021年。

使用方法:

# 先解压
unzip your-app.jar -d jar-classes/

# 使用脚本批量处理所有 .class 文件
for file in $(find jar-classes -name "*.class"); do
    java -jar cfr-0.152.jar --hideutf false "$file" --outputdir ./src-output
done

--hideutf false  在反编译的结果中,所有的中文都被转为unicode了,添加该参数解决该问题。

等脚本跑完之后,就可以在src-output中看到反编译后的源代码了。

posted @ 2025-09-10 17:29  潇湘神剑  阅读(82)  评论(0)    收藏  举报