Unified2 file analyzer updated to new plugin style.

This commit is contained in:
Seth Hall 2013-08-10 22:26:32 -04:00
parent a6eb7bb9df
commit 04de4ce24b
15 changed files with 169 additions and 28 deletions

View file

@ -0,0 +1 @@
@load ./main

View 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;
}

View file

@ -55,5 +55,7 @@
@load base/files/hash
@load base/files/extract
@load base/files/unified2
@load base/misc/find-checksum-offloading