mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

- 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.
11 lines
279 B
Standard ML
11 lines
279 B
Standard ML
# General purpose file magic signatures.
|
|
|
|
signature file-plaintext {
|
|
file-magic /([[:print:][:space:]]{10})/
|
|
file-mime "text/plain", -20
|
|
}
|
|
|
|
signature file-tar {
|
|
file-magic /([[:print:]\x00]){100}(([[:digit:]\x00\x20]){8}){3}/
|
|
file-mime "application/x-tar", 150
|
|
}
|