mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
11 lines
292 B
Text
11 lines
292 B
Text
event file_mime_type(f: fa_file, mime_type: string)
|
|
{
|
|
print "new file", f$id;
|
|
if ( mime_type == "text/plain" )
|
|
Files::add_analyzer(f, Files::ANALYZER_MD5);
|
|
}
|
|
|
|
event file_hash(f: fa_file, kind: string, hash: string)
|
|
{
|
|
print "file_hash", f$id, kind, hash;
|
|
}
|