mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
File type detection changes and fix https.log {orig,resp}_fuids fields.
- Removed "binary" and "octet-stream" mime type detections. They don't provide any more information than an uninitialized mime_type field which implicitly means no magic signature matches and so the media type is unknown to Bro. - Slight change to "text/plain" signature. It's still not the most accurate, which is reflected in its -20 strength value. - The logic for adding file ids to {orig,resp}_fuids fields of the http.log incorrectly depended on the state of {orig,resp}_mime_types fields, so sometimes not all file ids associated w/ the session were logged.
This commit is contained in:
parent
bebedcd873
commit
8dad5026fd
11 changed files with 43 additions and 64 deletions
|
@ -72,7 +72,7 @@ event file_over_new_connection(f: fa_file, c: connection, is_orig: bool) &priori
|
|||
|
||||
if ( f$is_orig )
|
||||
{
|
||||
if ( ! c$http?$orig_mime_types )
|
||||
if ( ! c$http?$orig_fuids )
|
||||
c$http$orig_fuids = string_vec(f$id);
|
||||
else
|
||||
c$http$orig_fuids[|c$http$orig_fuids|] = f$id;
|
||||
|
@ -87,7 +87,7 @@ event file_over_new_connection(f: fa_file, c: connection, is_orig: bool) &priori
|
|||
}
|
||||
else
|
||||
{
|
||||
if ( ! c$http?$resp_mime_types )
|
||||
if ( ! c$http?$resp_fuids )
|
||||
c$http$resp_fuids = string_vec(f$id);
|
||||
else
|
||||
c$http$resp_fuids[|c$http$resp_fuids|] = f$id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue