--- /dev/null
+# PCAP
+
+https://redmine.openinfosecfoundation.org/issues/1203
--- /dev/null
+alert http any any -> any any (content:"/etc/passwd"; http_uri; sid:1;)
+alert http any any -> any any (content:"/etc/passwd"; http_raw_uri; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ - filter:
+ count: 2
+ match:
+ event_type: http
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "/index.php"
+ http.http_user_agent: "Mozilla/5.0"
+ http.http_content_type: text/html
+ http.http_method: "GET"
+ http.protocol: "HTTP/1.0"
+ http.status: 302
+ http.redirect: "/index.php?page=main.php"
+ http.length: 0
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "//index.php?page=../../../etc/passwd"
+ http.status: 200
+ - filter:
+ count: 2
+ match:
+ event_type: flow
+ proto: TCP
--- /dev/null
+# PCAP
+
+https://redmine.openinfosecfoundation.org/issues/1203
--- /dev/null
+alert http any any -> any any (content:"/etc/passwd"; http_uri; sid:1;)
+alert http any any -> any any (content:"/etc/passwd"; http_raw_uri; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - --simulate-ips
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ - filter:
+ count: 2
+ match:
+ event_type: http
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "/index.php"
+ http.http_user_agent: "Mozilla/5.0"
+ http.http_content_type: text/html
+ http.http_method: "GET"
+ http.protocol: "HTTP/1.0"
+ http.status: 302
+ http.redirect: "/index.php?page=main.php"
+ http.length: 0
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "//index.php?page=../../../etc/passwd"
+ http.status: 200
+ - filter:
+ count: 2
+ match:
+ event_type: flow
+ proto: TCP
--- /dev/null
+# PCAP
+
+https://redmine.openinfosecfoundation.org/issues/1203
--- /dev/null
+alert http any any -> any any (content:"/etc/passwd"; http_uri; sid:1;)
+alert http any any -> any any (content:"/etc/passwd"; http_raw_uri; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ - filter:
+ count: 2
+ match:
+ event_type: http
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "/index.php"
+ http.http_user_agent: "Mozilla/5.0"
+ http.http_content_type: text/html
+ http.http_method: "GET"
+ http.protocol: "HTTP/1.0"
+ http.status: 302
+ http.redirect: "/index.php?page=main.php"
+ http.length: 0
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "//index.php?page=../../../etc/passwd"
+ http.status: 200
+ - filter:
+ count: 2
+ match:
+ event_type: flow
+ proto: TCP
--- /dev/null
+alert tcp any any -> any any (content:"Hello!"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 2
+ match:
+ event_type: flow
+ proto: TCP
--- /dev/null
+alert tcp any any -> any any (content:"Hello!"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+args:
+ - -k none --simulate-ips
+
+checks:
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 2
+ match:
+ event_type: flow
+ proto: TCP