]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add test for rapid7 advisory's CAN-2004-0184.
authorfenner <fenner>
Tue, 23 Mar 2004 16:26:48 +0000 (16:26 +0000)
committerfenner <fenner>
Tue, 23 Mar 2004 16:26:48 +0000 (16:26 +0000)
isakmp1.sh already checked for CAN-2004-0183.

tests/isakmp-identification-segfault.puu [new file with mode: 0644]
tests/isakmp3.out [new file with mode: 0644]
tests/isakmp3.sh [new file with mode: 0644]

diff --git a/tests/isakmp-identification-segfault.puu b/tests/isakmp-identification-segfault.puu
new file mode 100644 (file)
index 0000000..6f0ae0e
--- /dev/null
@@ -0,0 +1,11 @@
+begin 644 isakmp-identification-segfault.pcap
+MU,.RH0(`!````````````/__````````HV%@0"_*#@`\`0``/`$```(```!%
+M``$XH&P``/\1'$9_```!?P```0'U`?0!)$KL)9EPC(1ZBP(```````````40
+M`@`````````!'````0`"````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+I````````````````````````````````````````````````````````
+`
+end
diff --git a/tests/isakmp3.out b/tests/isakmp3.out
new file mode 100644 (file)
index 0000000..c2ff4e0
--- /dev/null
@@ -0,0 +1,2 @@
+IP (tos 0x0, ttl 255, id 41068, offset 0, flags [none], length: 312) 127.0.0.1.501 > 127.0.0.1.500: isakmp 1.0 msgid : phase 1 I ident:
+    (id: idtype=FQDN protoid=0 port=0 len=248 \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000)
diff --git a/tests/isakmp3.sh b/tests/isakmp3.sh
new file mode 100644 (file)
index 0000000..f97d5eb
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+uudecode isakmp-identification-segfault.puu
+
+echo -n test isakmp3...
+if (../tcpdump -t -v -n -r isakmp-identification-segfault.pcap | diff - isakmp3.out)
+then
+       echo passed.
+else
+       echo failed.
+fi
+