|
3 | 3 | "enabled": 1,
|
4 | 4 | "version_min": 300000,
|
5 | 5 | "version_max": 0,
|
6 |
| - "title": "pm operator test 1/4", |
| 6 | + "title": "pm operator test 1/6", |
7 | 7 | "client": {
|
8 | 8 | "ip": "200.249.12.31",
|
9 | 9 | "port": 2313
|
|
77 | 77 | "enabled": 1,
|
78 | 78 | "version_min": 300000,
|
79 | 79 | "version_max": 0,
|
80 |
| - "title": "pm operater test 3/4", |
| 80 | + "title": "pm operater test 3/6", |
81 | 81 | "client": {
|
82 | 82 | "ip": "200.249.12.31",
|
83 | 83 | "port": 2313
|
|
114 | 114 | "enabled": 1,
|
115 | 115 | "version_min": 300000,
|
116 | 116 | "version_max": 0,
|
117 |
| - "title": "pm operater test 4/4", |
| 117 | + "title": "pm operater test 4/6", |
118 | 118 | "client": {
|
119 | 119 | "ip": "200.249.12.31",
|
120 | 120 | "port": 2313
|
|
146 | 146 | "SecRuleEngine On",
|
147 | 147 | "SecRule ARGS \"@pm a ` b\" \"phase:1,id:999,deny,status:500\""
|
148 | 148 | ]
|
| 149 | + }, |
| 150 | + { |
| 151 | + "enabled": 1, |
| 152 | + "version_min": 300000, |
| 153 | + "version_max": 0, |
| 154 | + "title": "pm operater test 5/6", |
| 155 | + "client": { |
| 156 | + "ip": "200.249.12.31", |
| 157 | + "port": 2313 |
| 158 | + }, |
| 159 | + "server": { |
| 160 | + "ip": "200.249.12.31", |
| 161 | + "port": 80 |
| 162 | + }, |
| 163 | + "request": { |
| 164 | + "headers": { |
| 165 | + "Host": "net.tutsplus.com" |
| 166 | + }, |
| 167 | + "uri": "\/test.pl?param1=123", |
| 168 | + "method": "GET", |
| 169 | + "http_version": 1.1, |
| 170 | + "body": "" |
| 171 | + }, |
| 172 | + "response": { |
| 173 | + "headers": { |
| 174 | + "Content-Type": "text\/xml; charset=utf-8\n\r", |
| 175 | + "Content-Length": "length\n\r" |
| 176 | + } |
| 177 | + }, |
| 178 | + "expected": { |
| 179 | + "debug_log": "Rule returned 1", |
| 180 | + "http_code": 403 |
| 181 | + }, |
| 182 | + "rules": [ |
| 183 | + "SecRuleEngine On", |
| 184 | + "SecRule ARGS \"@pm 1 2 3\" \"phase:1,id:999,deny\"" |
| 185 | + ] |
| 186 | + }, |
| 187 | + { |
| 188 | + "enabled": 1, |
| 189 | + "version_min": 300000, |
| 190 | + "version_max": 0, |
| 191 | + "title": "pm operater test 6/6", |
| 192 | + "client": { |
| 193 | + "ip": "200.249.12.31", |
| 194 | + "port": 2313 |
| 195 | + }, |
| 196 | + "server": { |
| 197 | + "ip": "200.249.12.31", |
| 198 | + "port": 80 |
| 199 | + }, |
| 200 | + "request": { |
| 201 | + "headers": { |
| 202 | + "Host": "net.tutsplus.com" |
| 203 | + }, |
| 204 | + "uri": "\/test.pl?param1=abc", |
| 205 | + "method": "GET", |
| 206 | + "http_version": 1.1, |
| 207 | + "body": "" |
| 208 | + }, |
| 209 | + "response": { |
| 210 | + "headers": { |
| 211 | + "Content-Type": "text\/xml; charset=utf-8\n\r", |
| 212 | + "Content-Length": "length\n\r" |
| 213 | + } |
| 214 | + }, |
| 215 | + "expected": { |
| 216 | + "debug_log": "Rule returned 0", |
| 217 | + "http_code": 200 |
| 218 | + }, |
| 219 | + "rules": [ |
| 220 | + "SecRuleEngine On", |
| 221 | + "SecRule ARGS \"@pm 1 2 3\" \"phase:1,id:999,deny\"" |
| 222 | + ] |
149 | 223 | }
|
150 | 224 | ]
|
0 commit comments