mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Some changes to fix PE analyzer on master.
This commit is contained in:
parent
010cd80f2f
commit
b4498a4142
3 changed files with 16 additions and 37 deletions
|
@ -82,9 +82,9 @@ event file_state_remove(f: fa_file)
|
|||
Log::write(LOG, f$pe);
|
||||
}
|
||||
|
||||
event file_new(f: fa_file)
|
||||
event file_mime_type(f: fa_file, mime_type: string)
|
||||
{
|
||||
if ( f?$mime_type && f$mime_type == /application\/x-dosexec.*/ )
|
||||
if ( mime_type == /application\/x-dosexec.*/ )
|
||||
{
|
||||
Files::add_analyzer(f, Files::ANALYZER_PE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue