mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00

The previous "fix" caused significant performance degradation without the signature ever having a chance to trigger. Moving it to policy seems the best compromise, the alternative being outright removing it.
18 lines
596 B
Text
18 lines
596 B
Text
# @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
|
|
|
|
@load frameworks/signatures/iso-9660
|
|
|
|
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];
|
|
}
|