
CVE-2020-1938 (Ghostcat) Tomcat AJP 파일 읽기/파일 포함 PoC (python3 포트)
CVE-2020-1938 (CNVD-2020-10487) Tomcat AJP 프로토콜 파일 읽기 / 파일 포함 취약점 익스플로잇 POC의 python3 변환 버전입니다.
원본(python2) 작성자: ydhcui — https://github.com/YDHCUI/CNVD-2020-10487-Tomcat-Ajp-lfi
python3 "Tomcat-ROOT경로하 파일 포함(CVE-2020-1938)-python3.py" -p 8009 -f /test.txt 127.0.0.1
| 매개변수 | 설명 | 기본값 |
|---|
target | 대상 호스트 / IP | 필수 |
-p, --port | AJP 포트 | 8009 |
-f, --file | 읽을 파일 경로 | WEB-INF/web.xml |
import io, StringIO → io.BytesIO (AJP 데이터는 바이너리 바이트 스트림).encode('base64') → base64.b64encode(...).decode('utf-8')res를 b"" 바이트 결합으로 변경b"".join(...) 후 UTF-8로 디코딩