Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

Web Application - Test Django

Back


Architecture


Configure locust

pip 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

pic

pic

pic


top

pic


pic

pic