Skip to content

Commit

Permalink
tests: add test for bug 6008 SMB_COM_WRITE_ANDX data padding issue
Browse files Browse the repository at this point in the history
Bug #6008
  • Loading branch information
b1tg authored and jasonish committed Aug 30, 2023
1 parent 8b0c0e4 commit b4d5326
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
Binary file not shown.
22 changes: 22 additions & 0 deletions tests/filestore-filecontainer-smb1-padding/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
%YAML 1.1
---
pcap-file:
# Possible values are:
# - yes: checksum validation is forced
# - no: checksum validation is disabled
# - auto: Suricata uses a statistical approach to detect when
# checksum off-loading is used. (default)
# Warning: 'checksum-validation' must be set to yes to have checksum tested
checksum-checks: no
outputs:
- eve-log:
enabled: yes
types:
- files
- stats
- file-store:
version: 2
enabled: yes
stream-depth: 0
write-fileinfo: true
force-filestore: yes
20 changes: 20 additions & 0 deletions tests/filestore-filecontainer-smb1-padding/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
requires:
features:
- HAVE_NSS
- MAGIC
- RUST
files:
- src/output-filestore.c
min-version: 7

args:
- --set pcap-file.checksum-checks=no
checks:
- filter:
count: 1
match:
fileinfo.sha256: 04f93fbae50680991af90eb8a5a447d7b353d9c09097b3a905745d285d7ba634
- filter:
count: 1
match:
fileinfo.sha256: 81ef17f513f4959ba2a8243fa1412fa11b7d8f2c064da1f7ae98429188b6229c

0 comments on commit b4d5326

Please sign in to comment.