mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
signatures: Fix ISO 9960 signature
This signature only really works when default_file_bof_buffer_size is bumped to a sufficient value (40k).
This commit is contained in:
parent
036bcfe919
commit
d2409dd432
4 changed files with 30 additions and 2 deletions
16
testing/btest/scripts/base/files/mime/iso-9660.zeek
Normal file
16
testing/btest/scripts/base/files/mime/iso-9660.zeek
Normal file
|
@ -0,0 +1,16 @@
|
|||
# @TEST-DOC: Test ISO 9660 mime detection works with increased default_file_bof_buffer_size.
|
||||
#
|
||||
# @TEST-EXEC: zcat <$TRACES/http/iso-download.pcap.gz | zeek -b -r - %INPUT
|
||||
# @TEST-EXEC: zeek-cut -m fuid source mime_type filename < files.log > files.log.cut
|
||||
# @TEST-EXEC: btest-diff files.log.cut
|
||||
|
||||
@load base/protocols/http
|
||||
@load base/frameworks/files
|
||||
|
||||
redef default_file_bof_buffer_size = 40000;
|
||||
|
||||
event file_over_new_connection(f: fa_file, c: connection, is_orig: bool)
|
||||
{
|
||||
if ( f$source == "HTTP" )
|
||||
f$info$filename = split_string(c$http$uri, /\//)[-1];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue