]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test about ftp epsv response parsing 491/head
authorPhilippe Antoine <contact@catenacyber.fr>
Tue, 27 Apr 2021 07:15:24 +0000 (09:15 +0200)
committerPhilippe Antoine <contact@catenacyber.fr>
Mon, 21 Jun 2021 14:33:23 +0000 (16:33 +0200)
tests/ftp-epsv/README.md [new file with mode: 0644]
tests/ftp-epsv/input.pcap [new file with mode: 0644]
tests/ftp-epsv/test.yaml [new file with mode: 0644]

diff --git a/tests/ftp-epsv/README.md b/tests/ftp-epsv/README.md
new file mode 100644 (file)
index 0000000..df9a306
--- /dev/null
@@ -0,0 +1,8 @@
+# Description
+
+Test FTP EPSV response parsing
+
+# PCAP
+
+The pcap comes from https://www.cloudshark.org/captures/abdc8742488f
+(first answer for `ftp epsv pcap`)
diff --git a/tests/ftp-epsv/input.pcap b/tests/ftp-epsv/input.pcap
new file mode 100644 (file)
index 0000000..bf22acc
Binary files /dev/null and b/tests/ftp-epsv/input.pcap differ
diff --git a/tests/ftp-epsv/test.yaml b/tests/ftp-epsv/test.yaml
new file mode 100644 (file)
index 0000000..69848da
--- /dev/null
@@ -0,0 +1,13 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+  min-version: 6.0.0
+
+checks:
+
+  - filter:
+      count: 1
+      match:
+        event_type: ftp
+        ftp.command: "EPSV"
+        ftp.dynamic_port: 58612