1[
2  {
3    "enabled": 1,
4    "version_min": 300000,
5    "version_max": 0,
6    "title": "pm operator test 1/4",
7    "client": {
8      "ip": "200.249.12.31",
9      "port": 2313
10    },
11    "server": {
12      "ip": "200.249.12.31",
13      "port": 80
14    },
15    "request": {
16      "headers": {
17        "Host": "net.tutsplus.com"
18      },
19      "uri": "\/test.pl?param1=something`somenthing",
20      "method": "GET",
21      "http_version": 1.1,
22      "body": ""
23    },
24    "response": {
25      "headers": {
26        "Content-Type": "text\/xml; charset=utf-8\n\r",
27        "Content-Length": "length\n\r"
28      }
29    },
30    "expected": {
31      "debug_log": "Rule returned 1",
32      "http_code": 500
33    },
34    "rules": [
35      "SecRuleEngine On",
36      "SecRule ARGS \"@pm a ` b\" \"phase:1,id:999,deny,status:500\""
37    ]
38  },
39  {
40    "enabled": 1,
41    "version_min": 300000,
42    "version_max": 0,
43    "title": "pm operater test 2/4",
44    "client": {
45      "ip": "200.249.12.31",
46      "port": 2313
47    },
48    "server": {
49      "ip": "200.249.12.31",
50      "port": 80
51    },
52    "request": {
53      "headers": {
54        "Host": "net.tutsplus.com"
55      },
56      "uri": "\/test.pl?param1=`somenthing",
57      "method": "GET",
58      "http_version": 1.1,
59      "body": ""
60    },
61    "response": {
62      "headers": {
63        "Content-Type": "text\/xml; charset=utf-8\n\r",
64        "Content-Length": "length\n\r"
65      }
66    },
67    "expected": {
68      "debug_log": "",
69      "http_code": 500
70    },
71    "rules": [
72      "SecRuleEngine On",
73      "SecRule ARGS \"@pm a ` b\" \"phase:1,id:999,deny,status:500\""
74    ]
75  },
76  {
77    "enabled": 1,
78    "version_min": 300000,
79    "version_max": 0,
80    "title": "pm operater test 3/4",
81    "client": {
82      "ip": "200.249.12.31",
83      "port": 2313
84    },
85    "server": {
86      "ip": "200.249.12.31",
87      "port": 80
88    },
89    "request": {
90      "headers": {
91        "Host": "net.tutsplus.com"
92      },
93      "uri": "\/test.pl?param1=a",
94      "method": "GET",
95      "http_version": 1.1,
96      "body": ""
97    },
98    "response": {
99      "headers": {
100        "Content-Type": "text\/xml; charset=utf-8\n\r",
101        "Content-Length": "length\n\r"
102      }
103    },
104    "expected": {
105      "debug_log": "Rule returned 1",
106      "http_code": 500
107    },
108    "rules": [
109      "SecRuleEngine On",
110      "SecRule ARGS \"@pm a ` b\" \"phase:1,id:999,deny,status:500\""
111    ]
112  },
113  {
114    "enabled": 1,
115    "version_min": 300000,
116    "version_max": 0,
117    "title": "pm operater test 4/4",
118    "client": {
119      "ip": "200.249.12.31",
120      "port": 2313
121    },
122    "server": {
123      "ip": "200.249.12.31",
124      "port": 80
125    },
126    "request": {
127      "headers": {
128        "Host": "net.tutsplus.com"
129      },
130      "uri": "\/test.pl?param1=a`b",
131      "method": "GET",
132      "http_version": 1.1,
133      "body": ""
134    },
135    "response": {
136      "headers": {
137        "Content-Type": "text\/xml; charset=utf-8\n\r",
138        "Content-Length": "length\n\r"
139      }
140    },
141    "expected": {
142      "debug_log": "Rule returned 1",
143      "http_code": 500
144    },
145    "rules": [
146      "SecRuleEngine On",
147      "SecRule ARGS \"@pm a ` b\" \"phase:1,id:999,deny,status:500\""
148    ]
149  }
150]
151