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}}" +```