Giter VIP home page Giter VIP logo

authlib-injector's Introduction

本人尝试修复一个神秘bug,有相当大风险,使用需谨慎

  • English
  • 简体中文(Chinese Simplified)

authlib-injector

circle ci license agpl-3.0 language require java 1.8+

通过运行时修改 authlib 实现游戏外登录,并为 Yggdrasil 服务端的实现提供规范。

关于该项目的详细介绍见 wiki

获取

您可以从这里获取最新的 authlib-injector。

构建

构建依赖:Gradle、JDK 8+。

执行以下命令:

gradle

构建输出位于 build/libs 下。

部署

需要服务端实现本规范中的扩展 API。 通过添加以下 JVM 参数来配置:

-javaagent:{authlib-injector.jar 的路径}={Yggdrasil 服务端的 URL(API Root)}

调试

调试输出

添加以下 JVM 参数:

-Dauthlibinjector.debug={要打印的调试信息类型}

调试信息类型有:

  • launch 有关 authlib-injector 加载的
  • transform 有关字节码修改的
  • config 有关配置获取的
  • httpd 有关本地 HTTP 服务器的(其负责在本地处理掉部分请求,而不是发送到 Yggdrasil 服务端)
  • authlib 打印从 authlib 处获取的日志(其记录了网络调用的详细信息)

可以指定多个类型,中间用 , 分隔。如果要打印以上所有调试信息,可以设置其为 all

保存修改过的类

添加以下 JVM 参数:

-Dauthlibinjector.dumpClass=true

修改过的类文件会保存在当前目录下。

捐助

BMCLAPI 为 authlib-injector 提供了下载镜像站。如果您想要支持 authlib-injector 的开发,您可以捐助 BMCLAPI

authlib-injector's People

Contributors

yushijinhun avatar

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.