forked from getanteon/anteon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ddosify
32 lines (26 loc) · 1.43 KB
/
_ddosify
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#compdef ddosify _ddosify
typeset -A opt_args
_ddosify() {
local curcontext="$curcontext" state line
local -a opts
opts+=(
"-t[Target URL.]"
"-P[Proxy address as protocol\://username\:password@host\:port. Supported proxies \[http(s), socks\].]"
"-T[Request timeout in seconds (default 5).]"
"-a[Basic authentication, username\:password.]"
"-b[Payload of the network packet (body).]"
"-cert_key_path[A path to a certificate key file (usually called 'key.pem').]:filename:_files"
"-cert_path[A path to a certificate file (usually called 'cert.pem'.)]:filename:_files"
"-config[Json config file path. If a config file is provided, other flag values will be ignored.]:filename:_files"
"-d[Test duration in seconds (default 10).]"
"-debug[Iterates the scenario once and prints curl-like verbose result.]"
"-h[Request Headers. Ex\: -h 'Accept\: text/html' -h 'Content-Type\: application/xml'.]"
"-l[Type of the load test \['linear', 'incremental', 'waved'\] (default 'linear').]"
"-m[Request Method Type. For Http(s)\:\['GET', 'POST', 'PUT', 'DELETE', 'UPDATE', 'PATCH'\] (default 'GET').]"
"-n[Total iteration count (default 100).]"
"-o[Output destination (default 'stdout').]"
"-version[Prints version, git commit, built date (utc), go information and quit.]"
)
_arguments -s -w : $opts && return 0
return 1
}