example
This commit is contained in:
parent
019ad02c6a
commit
f86772cd9d
1 changed files with 21 additions and 0 deletions
21
README.md
21
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.
|
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}}"
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue