mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Fixed SMTP URL extraction for the Intel framework with Files updates.
This commit is contained in:
parent
cdf6b7864e
commit
ecfac31de0
1 changed files with 6 additions and 8 deletions
|
@ -1,11 +1,12 @@
|
||||||
@load base/frameworks/intel
|
@load base/frameworks/intel
|
||||||
@load base/protocols/smtp/file-analysis
|
@load base/protocols/smtp
|
||||||
@load base/utils/urls
|
@load base/utils/urls
|
||||||
@load ./where-locations
|
@load ./where-locations
|
||||||
|
|
||||||
event intel_mime_data(f: fa_file, data: string)
|
event intel_mime_data(f: fa_file, data: string)
|
||||||
{
|
{
|
||||||
if ( ! f?$conns ) return;
|
if ( ! f?$conns )
|
||||||
|
return;
|
||||||
|
|
||||||
for ( cid in f$conns )
|
for ( cid in f$conns )
|
||||||
{
|
{
|
||||||
|
@ -21,11 +22,8 @@ event intel_mime_data(f: fa_file, data: string)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
event file_new(f: fa_file) &priority=5
|
event file_new(f: fa_file)
|
||||||
{
|
{
|
||||||
if ( ! f?$source ) return;
|
if ( f$source == "SMTP" )
|
||||||
if ( f$source != "SMTP" ) return;
|
Files::add_analyzer(f, Files::ANALYZER_DATA_EVENT, [$stream_event=intel_mime_data]);
|
||||||
|
|
||||||
Files::add_analyzer(f, [$tag=Files::ANALYZER_DATA_EVENT,
|
|
||||||
$stream_event=intel_mime_data]);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue