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
To run this project follow the following steps:
- Clone the repository:
git clone https://github.com/davidbombal/log4jminecraft.git
- 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. - 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.
- 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