/ Tools


To get started with locust, install it using pip or whatever

pip install locustio

I'm testing this on a localy started ghost blog, docker must be installed

docker run -d --name ghost-victim -p 80:2368 ghost

Open http://localhost and setup the admin account with victim@test.com as email and whyohwhy as password.

Edit a new payload.py file with the following

from locust import HttpLocust, TaskSet, task

class WebsiteTasks(TaskSet):
    def on_start(self):
        self.client.post('/ghost/signin/', {
            "username": "victim@test.com",
            "password": "whyohwhy"

    def index(self):

    def welcome(self):

    def signout(self):

class WebsiteUser(HttpLocust):
    task_set = WebsiteTasks
    min_wait = 5000
    max_wait = 15000

Then locust -f payload.py --host localhost and open http://localhost:8089 to display the ongoing test.