Coder Social home page Coder Social logo

bug-back's Introduction

这个仓库用来重现一些bug

1. 复现log4j2 远程代码执行bug

1.1 复现步骤

  • 先启动 java com.dyz.log4j.bug.back.hacker.Client

  • 然后启动 java com.dyz.log4j.bug.back.server.BusinessServer

  • 说明(tree /f)

  • com.dyz.log4j.bug.back.hacker 包下用来模拟黑客攻击

  • com.dyz.log4j.bug.back.server 包下用来模拟业务服务器(被攻击)


├─hacker --模拟黑客
│     │ Client.java -- 黑客的攻击服务
│     │
│     └─logic
│          Attack.java -- 黑客的攻击逻辑

└─server --模拟业务服务器
                 BusinessServer.java

1.3 参考链接
https://docs.oracle.com/javase/tutorial/jndi/overview/index.html
https://logging.apache.org/log4j/2.x/manual/lookups.html

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.