From: Eric Leblond Date: Tue, 19 Nov 2019 17:06:08 +0000 (+0100) Subject: bpf-command-line: add test for bug 3346 X-Git-Tag: suricata-6.0.4~355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8cae0f5ca0081f89be596069871fbedb96cbcd5;p=thirdparty%2Fsuricata-verify.git bpf-command-line: add test for bug 3346 --- diff --git a/tests/bpf-command-line/input.pcap b/tests/bpf-command-line/input.pcap new file mode 120000 index 000000000..cc60ff062 --- /dev/null +++ b/tests/bpf-command-line/input.pcap @@ -0,0 +1 @@ +../base64/input.pcap \ No newline at end of file diff --git a/tests/bpf-command-line/test.rules b/tests/bpf-command-line/test.rules new file mode 100644 index 000000000..54eea9f46 --- /dev/null +++ b/tests/bpf-command-line/test.rules @@ -0,0 +1 @@ +alert http any any -> any any (msg:"Example"; content:"arg"; http_uri; base64_decode:bytes 17, offset 1, relative; base64_data; content:"thisisatest"; sid:1; rev:1;) diff --git a/tests/bpf-command-line/test.yaml b/tests/bpf-command-line/test.yaml new file mode 100644 index 000000000..2286ae0d0 --- /dev/null +++ b/tests/bpf-command-line/test.yaml @@ -0,0 +1,15 @@ +requires: + features: + - HAVE_LIBJANSSON + +args: + - -k none port 22 + +pcap: input.pcap + +checks: + - filter: + count: 0 + match: + event_type: alert + alert.signature_id: 1