8000 GitHub - r4b3rt/friday: java runtime decompiler (java实时反编译工具)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

r4b3rt/friday

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Total visitors

JAVA实时反编译

初衷:在开发pinpoint,skywalking agent过程中有时候想看看修改后的字节码.
打包方式:在目录下执行:mvn clean install -Dmaven.test.skip,
启动方式:执行后打包命令后在starter/target后生成:friday-starter.tar.gz,解压后执行bin/run.sh即可
原理:通过java agent方式调用Instrumentation#retransformClasses方法,保存JVM返回的字节码,然后调用cfr将其反编译为JAVA类
声明:只在macOS系统下进行过测试,原理上应该能够支持windows,linux。因为获取进程号调用的是openjdk的tools.jar,目前暂不支持其他jdk,如openj9
更新:2021.4.20 添加搜索窗口,为了方便只能使用类全名搜索,希望以后搜索之后能够在左边的树结构中定位到。
已知问题:1. 在启动不了的时候,请尝试通过 debug 方式启动。 2. 有同学反映需要在 jdk8 下启动。

start.png (2880×1800)

1.Decompiler pinpoint agent

pinpoint-runtime.png (2880×1800)

2.Decompiler skywalking agent

skywalking-runtime.png (2880×1800)

skywalking-runtime-proxy.png (2880×1800)

Search every class in your jvm

search.png (2880×1800)

About

java runtime decompiler (java实时反编译工具)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.8%
  • Batchfile 1.3%
  • Shell 1.2%
  • CSS 0.7%
0