# EDUCATIONAL EXAMPLE - DO NOT USE MALICIOUSLY import threading import requests target_url = "http://example.com" num_threads = 100
for _ in range(500): threading.Thread(target=slowloris).start()
from locust import HttpUser, task, between class WebsiteUser(HttpUser): wait_time = between(1, 2)