Closed achilles42 closed 8 years ago
Is there any update on this request, this feature will be really helpful. Thanks.
The way to do this is to simply replicate the same URL for multiple targets with different payloads.
You can easily script this and feed it into stdin of vegeta attack
. It's easier to do it with the JSON targets format.
If you want to generate targets on the go, use the -lazy
flag.
this wont be of much help. what if I need each request to pickup different payloads. ?
what if I need each request to pickup different payloads. ?
The you generate a different body for each target you produce as input.
I think i got it. sorry for the confusion.. i was thinking one attack means one api and one payload ran for n
number of times
For Example: vegeta attack -targets=targets.txt -body=payload.json -rate=2 -duration=2s
targets.txt:
payload.json:
So for every attack it should take new payload specified in the payload.json file (payload.json file contains multiple payloads(comma separated))