forked from getanteon/anteon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
111 lines (111 loc) · 3.45 KB
/
config.json
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// This file contains full features of Ddosify as a reference. Don't use it directly.
{
"request_count": 30, // This field will be deprecated, please use iteration_count instead.
"iteration_count": 30,
"debug" : false, // use this field for debugging, see verbose result
"load_type": "linear",
"duration": 5,
"manual_load": [
{"duration": 5, "count": 5},
{"duration": 6, "count": 10},
{"duration": 7, "count": 20}
],
"env" : {
"HTTPBIN" : "https://httpbin.ddosify.com",
"LOCAL" : "http://localhost:8084",
"NAMES" : ["kenan","fatih","kursat","semih","sertac"] ,
"NUMBERS" : [52,99,60,33],
"BOOLS" : [true,true,true,false],
"randomIntPerIteration": "{{_randomInt}}"
},
"data":{
"info": {
"path" : "config/config_testdata/test.csv",
"delimiter": ";",
"vars": {
"0":{"tag":"name"},
"1":{"tag":"city"},
"2":{"tag":"team"},
"3":{"tag":"payload", "type":"json"},
"4":{"tag":"age", "type":"int"}
},
"allow_quota" : true,
"order": "random",
"skip_first_line" : true,
"skip_empty_line" : true
}
},
"proxy": "http://proxy_host.com:proxy_port",
"output": "stdout",
"steps": [
{
"id": 1,
"url": "https://test_site1.com/endpoint_1",
"method": "POST",
"headers": {
"Content-Type": "application/xml",
"header1": "header2"
},
"payload": "Body content 1",
"timeout": 3,
"sleep": "300-500",
"auth": {
"username": "test_user",
"password": "12345"
},
"others": {
"keep-alive": true,
"disable-compression": false,
"h2": true,
"disable-redirect": true
},
"capture_env": {
"NUM" :{ "from":"body","json_path":"num"}
},
"assertion":[
"equals(status_code,200)",
"in(variables.num,[10,20])"
]
},
{
"id": 2,
"url": "{{LOCAL}}",
"method": "GET",
"payload_file": "config_examples/payload.txt",
"timeout": 2,
"sleep": "1000",
"headers":{
"num": "{{NUM}}",
"randNum": "{{rand(NUMBERS)}}",
"randInt" : "{{randomIntPerIteration}}"
},
"assertion":[
"contains(body,\"xyz\")",
"range(headers.content-length,1000,10000)"
]
},
{
"id": 3,
"url": "https://test_site1.com/endpoint_3",
"method": "POST",
"payload_multipart": [
{
"name": "[field-name]",
"value": "[field-value]"
},
{
"name": "[field-name]",
"value": "./test.png",
"type": "file"
},
{
"name": "[field-name]",
"value": "http://test.com/test.png",
"type": "file",
"src": "remote"
}
],
"timeout": 2
}
]
}