mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
A small fix to ssh/geo-data.bro. ssh can now be unset for local-local or remote-remote, so make the script deal with this.
This commit is contained in:
parent
1508b00489
commit
cb91a9c101
2 changed files with 8 additions and 2 deletions
|
@ -32,6 +32,9 @@ function get_location(c: connection): geo_location
|
|||
|
||||
event ssh_auth_successful(c: connection, auth_method_none: bool) &priority=3
|
||||
{
|
||||
if ( ! c$ssh?$direction )
|
||||
return;
|
||||
|
||||
# Add the location data to the SSH record.
|
||||
c$ssh$remote_location = get_location(c);
|
||||
|
||||
|
@ -47,6 +50,9 @@ event ssh_auth_successful(c: connection, auth_method_none: bool) &priority=3
|
|||
|
||||
event ssh_auth_failed(c: connection) &priority=3
|
||||
{
|
||||
if ( ! c$ssh?$direction )
|
||||
return;
|
||||
|
||||
# Add the location data to the SSH record.
|
||||
c$ssh$remote_location = get_location(c);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue