反编译 Class 文件的工具——JAD

本文最后更新于:1 年前

Reference

jad.exe

选项说明描述原文
-a以语句为单位生成 JVM 指令,显示语句generate JVM instructions as comments (annotate)
-af注释时输出完全限定名称output fully qualified names when annotating
-bgenerate redundant braces (braces)
-clearclear all prefixes, including the default ones
-d输出文件目录directory for output files
-deadtry to decompile dead parts of code (if there are any)
-dis把以方法体为单位生成 JVM 指令,不显示语句disassembler only (disassembler)
-f生成完全限定的名称generate fully qualified names (fullnames)
-ffoutput fields before methods (fieldsfirst)
-iprint default initializers for fields (definits)
-lsplit strings into pieces of maxchars (splitstr)
-lnc输出原始行号output original line numbers as comments (lnc)
-lradixdisplay long integers using the specified radix
-nlsplit strings on newline characters (splitstr)
-noconvdon’t convert Java identifiers into valid ones (noconv)
-nocastdon’t generate auxiliary casts
-noclassdon’t convert .class operators
-nocode不反编译方法体don’t generate the source code for methods
-noctor不反编译空参数的构造方法suppress the empty constructors
-nodosturn off check for class files written in DOS mode
-nofddon’t disambiguate fields with the same names (nofldis)
-noinnerturn off the support of inner classes
-nolvt忽略局部变量表条目方法的参数名、局部变量名都会被混淆ignore Local Variable Table entries (nolvt)
-nonlb不要在大括号之前插入换行符don’t insert a newline before opening brace (nonlb)
-o覆盖输出文件时不需要确认overwrite output files without confirmation
-p在控制台输出不输出文件了send all output to STDOUT (for piping)
-paprefix for all packages in generated source files
-pcprefix for classes with numerical names (default: _cls)
-peprefix for unused exception names (default: _ex)
-pfprefix for fields with numerical names (default: _fld)
-pipack imports into one line using .* (packimports)
-plprefix for locals with numerical names (default: _lcl)
-pmprefix for methods with numerical names (default: _mth)
-ppprefix for method parms with numerical names (default:_prm)
-pvpack fields with the same types into one line (packfields)
-rrestore package directory structure
-radixdisplay integers using the specified radix (8, 10, or 16)
-s输出文件的扩展名output file extension (default: .jad)
-safegenerate additional casts to disambiguate methods/fields
-space关键字 if、while 等和表达式之间的空格output space between keyword (if, while, etc) and expression
-stat显示已处理的类/方法/字段的总数show the total number of processed classes/methods/fields
-t缩进使用的空格数usespaces for indentation (default: 4)
-t使用制表符而不是空格进行缩进use tabs instead of spaces for indentation
-v把方法名在方法上面一行顶头打印出来show method names while decompiling
-8convert Unicode strings into ANSI strings (ansi)
-&redirect STDERR to STDOUT

反编译 Class 文件的工具——JAD
https://weichao.io/be22ec3fbfaf/
作者
魏超
发布于
2022年12月13日
更新于
2023年1月11日
许可协议