From: Philippe Antoine Date: Thu, 21 Dec 2023 12:17:15 +0000 (+0100) Subject: Adds test that we parse http not as 0.9 X-Git-Tag: suricata-6.0.16~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1602%2Fhead;p=thirdparty%2Fsuricata-verify.git Adds test that we parse http not as 0.9 Ticket: 6643 --- diff --git a/tests/http-not09/README.md b/tests/http-not09/README.md new file mode 100644 index 000000000..dd731b818 --- /dev/null +++ b/tests/http-not09/README.md @@ -0,0 +1,11 @@ +# Test Description + +Test that we parse weird HTTP not as HTTP/0.9 + +## PCAP + +Crafted by running server `python3 -m http.server 8000` and a dummy client sending hardcoded data + +## Related issues + +https://redmine.openinfosecfoundation.org/issues/6643 diff --git a/tests/http-not09/input.pcap b/tests/http-not09/input.pcap new file mode 100644 index 000000000..acc9a0e39 Binary files /dev/null and b/tests/http-not09/input.pcap differ diff --git a/tests/http-not09/test.yaml b/tests/http-not09/test.yaml new file mode 100644 index 000000000..b835a389f --- /dev/null +++ b/tests/http-not09/test.yaml @@ -0,0 +1,9 @@ +args: + - -k none + +checks: + - filter: + count: 1 + match: + event_type: http + http.http_user_agent: myscript