MCPcopy Index your code
hub / github.com/davidbombal/log4jminecraft

github.com/davidbombal/log4jminecraft @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
6 symbols 14 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

log4jminecraft

This code DOES NOT promote or encourage any illegal activities! The content in this document is provided solely for educational purposes and to create awareness!

Watch a video showing the process here: https://youtu.be/efnluUK_w_U

This PDF shows you how to setup a Minecraft server for this demonstration: https://davidbombal.wiki/minecraftw11log4j

To run this project follow the following steps: 1. Clone the repository: git clone https://github.com/davidbombal/log4jminecraft.git 3. Run the script log4j.py (python3 log4j.py <ip_address> i.e. python3 log4j.py 192.168.1.132). This installs the prerequisite software, and also starts up the LDAP server. 4. Run the script jcomp_pyserv.py (python3 jcomp_pyserv.py). This compiles the Java payload to be ran, and also starts a python3 http.server.

Acknowledgement for contributions:

  • John Hammond : https://youtu.be/7qoPDq41xhQ
  • Moritz Bechler (For creating the Java Unmarshaller Security - MarshalSec) : https://github.com/mbechler/marshalsec
  • xiajun325 for clear instruction on how to use the MarshalSec tool : https://github.com/xiajun325/apache-log4j-rce-poc

Core symbols most depended-on inside this repo

Log4jRCE
called by 0
poc/Log4jRCE_calc.java
Log4jRCE
called by 0
poc/Log4jRCE.java
Log4jRCE
called by 0
poc/Log4jRCE_notepad.java

Shape

Class 3
Method 3

Languages

Java100%

Modules by API surface

poc/Log4jRCE_notepad.java2 symbols
poc/Log4jRCE_calc.java2 symbols
poc/Log4jRCE.java2 symbols

For agents

$ claude mcp add log4jminecraft \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact