Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
tomcatfileread — CVE-2020-1938 (Ghostcat) Tomcat AJP file read/file include PoC with python3 port | Kitploit
Tools/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

View Repository
18h 19m agoNot yet reviewed
Website

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

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/

Download Tool