Coder Social home page Coder Social logo

friday's Introduction

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)

friday's People

Contributors

zifeihan avatar bingyun84 avatar dependabot[bot] avatar

Stargazers

 avatar Ken avatar

Forkers

kentimes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.