From f86772cd9d10fb8b3a9e217d4577f162046231a3 Mon Sep 17 00:00:00 2001 From: pegasko Date: Wed, 27 Nov 2024 20:12:36 +0300 Subject: [PATCH] example --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 5be1496..7ed37bc 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,24 @@ options: ``` This tool can spawn N processes running specified script and substitute instance number in specific template `{{template}}` or other, if set. + +# Example + +DoS your API (or your system) + +`poke.sh` +```bash +#!/bin/bash + +url="$1" +instance="$2" + +for num in $(seq 1 1000000) ; do + curl -s "$url" -H "Content-Type: application/json" --request POST --data "{\"user_id\": $num}" +done +``` + +`stdin` +```bash +python zaebaka.py --script "bash poke.sh https://localhost:8080/get_profile {{instance}}" +```