All technological notes.
locustpip install locust
cat > /home/kali/locustfile.py <<EOF
from locust import HttpUser, TaskSet, task, between
class UserBehavior(TaskSet):
@task
def index(self):
self.client.get("/") # Replace with your app's endpoint.
class WebsiteUser(HttpUser):
tasks = [UserBehavior]
wait_time = between(1, 5) # Simulates user delay.
EOF
# add x permission
chmod +x /home/kali/locustfile.py
locust -f locustfile.py --host=http://192.168.1.11
# [2025-01-19 00:48:37,121] kali/INFO/locust.main: Starting Locust 2.32.6
# [2025-01-19 00:48:37,122] kali/INFO/locust.main: Starting web interface at http://0.0.0.0:8089



top


