mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Unified2 file analyzer updated to new plugin style.
This commit is contained in:
parent
a6eb7bb9df
commit
04de4ce24b
15 changed files with 169 additions and 28 deletions
1
scripts/base/files/unified2/__load__.bro
Normal file
1
scripts/base/files/unified2/__load__.bro
Normal file
|
@ -0,0 +1 @@
|
|||
@load ./main
|
16
scripts/base/files/unified2/main.bro
Normal file
16
scripts/base/files/unified2/main.bro
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
|
||||
|
||||
event file_new(f: fa_file)
|
||||
{
|
||||
print "found a file";
|
||||
print f$mime_type;
|
||||
print Files::add_analyzer(f, Files::ANALYZER_UNIFIED2);
|
||||
}
|
||||
|
||||
event unified2_alert(f: fa_file, alert: count)
|
||||
{
|
||||
print "yaayyaya!!!";
|
||||
|
||||
print alert;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue