Code Monkey home page Code Monkey logo

log4j2-client-protector's Introduction

log4j2-client-protector

Minecraft Bungee&Bukkit防止Log4j2(CVE-2021-44228)漏洞入侵玩家客户端

本插件主要作用是在已修复Log4j2漏洞(升级log4j2版本)的服务器上防御其玩家客户端受到侵害 (理论上同时安装bc和bukkit在未修复的服务端上也能起到拦截作用)

保护他人,为玩家负责

bungeecord服务器仅在bungeecord上安装即可实现基础防御功能

当然为了达到100%的效果,也可以同时在bungeecord和bukkit安装

Bukkit前置需求: ProtocolLib

Bungee前置需求: Protocolize (以下环境包已包含)

特性

  • bungeecord: 阻止 bukkit->玩家、玩家->bungee的远程执行代码
  • bukkit: 阻止 玩家->bukkit、玩家铁砧物品更名远程执行代码、创造模式更名远程执行代码、bukkit->玩家等
  • 日志记录非法利用
  • 被动拦截等级
  • 事件
  • 拦截8种类型
    • type:player->server message
    • type:server->player json
    • type:user->bungeecord
    • type:bungeecord->user
    • type:spigot->bungee
    • type:anvil
    • type:inventory-click
    • type:creative

API

  • LCPProvider.get() #获取LCPPlugin实例
  • LCPUtils.String.isMatch() #匹配字符串(level 1)
  • LCPUtils.String.isMatchRegex() #匹配字符串(level 2)
  • LCPUtils.String.isMatchJndi() #匹配字符串(level 3)
  • LCPUtils.String.levelMatch() #返回命中等级
  • LCPUtils.String.replaceIllegal() #修正字符串
  • LCPPlugin.receiveProtectLevel #get&set被动拦截等级 1匹配${ 2(默认)符合1情况下进行正则匹配 3最符合1、2情况下匹配jndi
  • Log4j2ClientProtectorBukkitEvent #Bukkit事件,玩家发送非法字符串触发 level>=2可以认为玩家在发送恶意字符串
  • Log4j2ClientProtectorBungeeEvent #Bungee事件,玩家发送非法字符串触发 level>=2可以认为玩家在发送恶意字符串

演示

image

image

log4j2-client-protector's People

Contributors

meowray avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.