mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
coalesce smtp handlers for ADDR
This commit is contained in:
parent
8314b18092
commit
36c4d112c8
1 changed files with 1 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
||||||
@load base/protocols/smtp
|
@load base/protocols/smtp
|
||||||
@load ./where-locations
|
@load ./where-locations
|
||||||
|
|
||||||
event mime_end_entity(c: connection)
|
event mime_end_entity(c: connection) &group="Intel::ADDR"
|
||||||
{
|
{
|
||||||
if ( c?$smtp )
|
if ( c?$smtp )
|
||||||
{
|
{
|
||||||
|
@ -17,13 +17,7 @@ event mime_end_entity(c: connection)
|
||||||
$where=SMTP::IN_RECEIVED_HEADER]);
|
$where=SMTP::IN_RECEIVED_HEADER]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
event mime_end_entity(c: connection) &group="Intel::ADDR"
|
|
||||||
{
|
|
||||||
if ( c?$smtp )
|
|
||||||
{
|
|
||||||
if ( c$smtp?$x_originating_ip )
|
if ( c$smtp?$x_originating_ip )
|
||||||
Intel::seen([$host=c$smtp$x_originating_ip,
|
Intel::seen([$host=c$smtp$x_originating_ip,
|
||||||
$conn=c,
|
$conn=c,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue