summaryrefslogtreecommitdiffstats
path: root/tests/smb.tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:13:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:13:01 +0000
commit7adcb5b605cc1328a3084c334f4697ec9771936c (patch)
tree03e681bfda053978ba896745828e09cb056ad156 /tests/smb.tests
parentInitial commit. (diff)
downloadtcpdump-7adcb5b605cc1328a3084c334f4697ec9771936c.tar.xz
tcpdump-7adcb5b605cc1328a3084c334f4697ec9771936c.zip
Adding upstream version 4.99.4.upstream/4.99.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/smb.tests')
-rw-r--r--tests/smb.tests140
1 files changed, 140 insertions, 0 deletions
diff --git a/tests/smb.tests b/tests/smb.tests
new file mode 100644
index 0000000..8c7fb2b
--- /dev/null
+++ b/tests/smb.tests
@@ -0,0 +1,140 @@
+# -*- perl -*-
+
+# Only attempt OpenSSL-specific tests when compiled with the library.
+# Reading the secret(s) from a file does not work with Capsicum.
+
+$testlist = [
+
+# EAP tests
+ {
+ config_set => 'ENABLE_SMB',
+ name => 'eapon1',
+ input => 'eapon1.pcap',
+ output => 'eapon1.out',
+ },
+
+ {
+ config_unset => 'ENABLE_SMB',
+ name => 'eapon1-nosmb',
+ input => 'eapon1.pcap',
+ output => 'eapon1-nosmb.out',
+ },
+
+ {
+ config_set => 'ENABLE_SMB',
+ name => 'eapon1-v',
+ input => 'eapon1.pcap',
+ output => 'eapon1-v.out',
+ args => '-v'
+ },
+
+ {
+ config_unset => 'ENABLE_SMB',
+ name => 'eapon1-v-nosmb',
+ input => 'eapon1.pcap',
+ output => 'eapon1-v-nosmb.out',
+ args => '-v'
+ },
+
+# IPX/Netware packets
+ {
+ config_set => 'ENABLE_SMB',
+ name => 'ipx',
+ input => 'ipx.pcap',
+ output => 'ipx.out',
+ },
+
+ {
+ config_unset => 'ENABLE_SMB',
+ name => 'ipx-nosmb',
+ input => 'ipx.pcap',
+ output => 'ipx-nosmb.out',
+ },
+
+# bad packets from Otto Airamo and Antti Levomäki
+ {
+ config_set => 'ENABLE_SMB',
+ name => 'nbns-valgrind',
+ input => 'nbns-valgrind.pcap',
+ output => 'nbns-valgrind.out',
+ args => '-vvv -e',
+ },
+
+ {
+ config_unset => 'ENABLE_SMB',
+ name => 'nbns-valgrind-nosmb',
+ input => 'nbns-valgrind.pcap',
+ output => 'nbns-valgrind-nosmb.out',
+ args => '-vvv -e',
+ },
+
+# bad packets from Junjie Wang
+ {
+ config_set => 'ENABLE_SMB',
+ name => 'smb_print_trans-oobr1',
+ input => 'smb_print_trans-oobr1.pcap',
+ output => 'smb_print_trans-oobr1.out',
+ args => '-vv',
+ },
+
+ {
+ config_unset => 'ENABLE_SMB',
+ name => 'smb_print_trans-oobr1-nosmb',
+ input => 'smb_print_trans-oobr1.pcap',
+ output => 'smb_print_trans-oobr1-nosmb.out',
+ args => '-vv',
+ },
+
+# bad packets from Philippe Antoine
+ {
+ config_set => 'ENABLE_SMB',
+ name => 'smb_print_trans-oobr2',
+ input => 'smb_print_trans-oobr2.pcap',
+ output => 'smb_print_trans-oobr2.out',
+ args => '-vv',
+ },
+
+ {
+ config_unset => 'ENABLE_SMB',
+ name => 'smb_print_trans-oobr2-nosmb',
+ input => 'smb_print_trans-oobr2.pcap',
+ output => 'smb_print_trans-oobr2-nosmb.out',
+ args => '-vv',
+ },
+
+# bad packets from Luis Rocha
+ {
+ config_set => 'ENABLE_SMB',
+ name => 'smb_data_print-oobr',
+ input => 'smb_data_print-oobr.pcapng',
+ output => 'smb_data_print-oobr.out',
+ args => '-vv',
+ },
+
+ {
+ config_unset => 'ENABLE_SMB',
+ name => 'smb_data_print-oobr-nosmb',
+ input => 'smb_data_print-oobr.pcapng',
+ output => 'smb_data_print-oobr-nosmb.out',
+ args => '-vv',
+ },
+
+ {
+ config_set => 'ENABLE_SMB',
+ name => 'smb_data_print-segv',
+ input => 'smb_data_print-segv.pcapng',
+ output => 'smb_data_print-segv.out',
+ args => '-vv',
+ },
+
+ {
+ config_unset => 'ENABLE_SMB',
+ name => 'smb_data_print-segv-nosmb',
+ input => 'smb_data_print-segv.pcapng',
+ output => 'smb_data_print-segv-nosmb.out',
+ args => '-vv',
+ },
+
+ ];
+
+1;