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
log4shell-exploitation-lab — CVE-2021-44228 Log4Shell reproduced end to end: exploitation through remediation | Kitploit
Tools/GitHubGitHub/wafeeq-fareed/log4shell-exploitation-lab
Vulnerability AnalysisExploitationWeb SecurityPenetration TestingLearning & EducationLabs & Practice
GitHubwafeeq-fareed/log4shell-exploitation-lab

log4shell-exploitation-lab

CVE-2021-44228 Log4Shell reproduced end to end: exploitation through remediation

View Repository
9h 50m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Log4Shell Exploitation Lab (CVE-2021-44228)

Reproduced the Log4Shell vulnerability end to end in an isolated lab environment, from initial exploitation through to a full remediation report. Done as a paired piece of MSc coursework with Aditya Chaudhari, written up together as a joint report.

What I did

  • Set up a vulnerable Log4j based Tomcat web application in a Docker container
  • Wrote a Python script to generate the exploit payload, then stood up a malicious LDAP server and an HTTP server to serve it
  • Triggered the JNDI injection chain by sending a crafted lookup string, then caught the resulting reverse shell with netcat and confirmed root access
  • Rebuilt the same container with a hardened Dockerfile (JNDI lookups disabled via JAVA_OPTS) and confirmed the exploit no longer worked
  • Wrote a structured vulnerability report covering root cause, patch history, and network level mitigations, the kind you'd actually hand to a client or dev team

Why I did it this way

I wanted to understand the full exploit chain myself rather than just read about it. Log4Shell is a good vulnerability to learn from because it touches Java class loading, LDAP, and JNDI all at once, and the patching story afterward teaches you what remediation actually looks like beyond just applying an update.

Screenshots

Lab directory

Project structure for the vulnerable app, exploit code, and PoC script.

Vulnerable app startup The vulnerable Tomcat application starting inside its Docker container.

Exploit and root shell Sending the JNDI payload through a login field, then confirming root access with whoami on the netcat listener.

Mitigation Dockerfile The hardened Dockerfile that disables JNDI lookups and blocks the exploit.

Payload server and listener The Python PoC script standing up the LDAP and HTTP servers, and netcat listening for the callback.

Tools

Docker, Java, Python, netcat, Kali Linux

Disclaimer

All work conducted in an isolated lab environment for educational purposes.

Download Tool