From 6ec4e02f2aa47caff6928f9bcd6f171ed8e5cdc7 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 14 May 2024 14:12:45 +0200 Subject: [PATCH] websocket: adds test for ping/pong opcodes Ticket: 7025 --- tests/websocket-ping/README.md | 11 +++++++++++ tests/websocket-ping/input.pcap | Bin 0 -> 2021 bytes tests/websocket-ping/test.yaml | 17 +++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 tests/websocket-ping/README.md create mode 100644 tests/websocket-ping/input.pcap create mode 100644 tests/websocket-ping/test.yaml diff --git a/tests/websocket-ping/README.md b/tests/websocket-ping/README.md new file mode 100644 index 000000000..d7d399080 --- /dev/null +++ b/tests/websocket-ping/README.md @@ -0,0 +1,11 @@ +# Test Description + +Test websocket ping/pong opcodes + +## PCAP + +Found at https://lists.nongnu.org/archive/html/monit-general/2014-03/msg00009.html + +## Related issues + +https://redmine.openinfosecfoundation.org/issues/7025 diff --git a/tests/websocket-ping/input.pcap b/tests/websocket-ping/input.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8930c1822cc861b6d8e7caadb5c11e7b99c097c3 GIT binary patch literal 2021 zc-o!R?@JSL90&04ZF9)*hFaG2K^#M21a2-f+}c2My5VLUY-&Aop4T?E+pXKtswXYT zz|v{Y1{x>@X+=U%;tzZ-DmI5m(TXb z^EnmJ0P$BW0&p2#L*RIDZCMX|@ZN{ts5L+r(EdZ!A9aS1trLKV(ccABlT3vzcS7mGfknLCzZIg4yYvYgJg8s~GZ5GIF zv_yLg+Ab)$lo1v@puTrrO@2_ekJg$U22nJ`aB%{0f7y8cvz505Z* zD#Hw?IXcb=q^^rgCK+0YaY;M1|DMzZ8M=9p84lt-&0gl3ox0lE+w18YcKNK`*M0G* z&3!IK8-PJE2;DIu}BQwM+G5ew^%ZnjQQZxW{!`Lx&R-JuwgruBi)jQHT#KWlbOT>lY_rV}Md)?yc*=CKNW6%@_F< zWInj9Xd0loAT`C7P}UYJ70kp0IvPtxr~uCi9L*)t|J{jBnr2e4$DSa|(=F+~#Kr!2 zr<-Nl{DGAFlqc*Sj621k=GM!c;K%p`8>FXgal*#eY5x|~duaARp-0&~V|;?mIzjdV=U2{Yd5O?b>I$p$A&&afBf*k%~hi%+Inc0 z>eSKH{U(1;Ly(-B5`vi19p*-uiC1&kU@n()q literal 0 Hc-jL100001 diff --git a/tests/websocket-ping/test.yaml b/tests/websocket-ping/test.yaml new file mode 100644 index 000000000..239e89744 --- /dev/null +++ b/tests/websocket-ping/test.yaml @@ -0,0 +1,17 @@ +requires: + min-version: 8 + +args: +- -k none + +checks: +- filter: + count: 1 + match: + event_type: websocket + websocket.opcode: ping +- filter: + count: 1 + match: + event_type: websocket + websocket.opcode: pong -- 2.47.2