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

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

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

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

工具目录

分类

查看所有分类
Loading categories
tomcatfileread — CVE-2020-1938 (Ghostcat) Tomcat AJP file read/file include PoC with python3 port | Kitploit
工具/GitHubGitHub/lem0n817/tomcatfileread
Vulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration Testing
GitHublem0n817/tomcatfileread

tomcatfileread

CVE-2020-1938 (Ghostcat) Tomcat AJP file read/file include PoC with python3 port

查看仓库
18小时19分前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
网站
分享

CVE-2020-1938 Tomcat File Read / File Include (Ghostcat) — python3

CVE-2020-1938 (CNVD-2020-10487) Tomcat AJP 协议文件读取 / 文件包含漏洞利用 POC 的 python3 转换版。

原版(python2)作者: ydhcui — https://github.com/YDHCUI/CNVD-2020-10487-Tomcat-Ajp-lfi

用法

root@kitploit:~
python3 "Tomcat-ROOT路径下文件包含(CVE-2020-1938)-python3.py" -p 8009 -f /test.txt 127.0.0.1

参数

参数说明默认值
target目标主机 / IP必填
-p, --portAJP 端口8009
-f, --file读取的文件路径WEB-INF/web.xml

转换说明(python2 → python3)

  • import io,StringIO → io.BytesIO(AJP 数据是二进制字节流)
  • .encode('base64') → base64.b64encode(...).decode('utf-8')
  • 包序列化 res 改为 b"" 字节拼接
  • 响应体输出 b"".join(...) 后按 UTF-8 解码

复现详情: http://www.svenbeast.com/post/fqSI9laE8/

下载工具