Skip to content

Commit

Permalink
Merge pull request #2 from activecm/1-rename-module
Browse files Browse the repository at this point in the history
update module name
  • Loading branch information
fullmetalcache authored Jun 9, 2021
2 parents 3f3fea7 + 0884a85 commit 8f59afc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/zeek_open_connections.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function set_conn_log_data_hack(c: connection)

# Now onto the actual code for this script...

module LongConnection;
module OpenConnection;

# Set this to the interval at which you want to alert on
# open connections. 1hr means that an open connection will
Expand All @@ -61,7 +61,7 @@ export {
## Notice for when a long connection is found.
## The `sub` field in the notice represents the number
## of seconds the connection has currently been alive.
LongConnection::found
OpenConnection::found
};
}

Expand All @@ -82,7 +82,7 @@ function long_callback(c: connection, cnt: count): interval
if ( c$duration >= ALERT_INTERVAL )
{
Conn::set_conn_log_data_hack(c);
Log::write(LongConnection::LOG, c$conn);
Log::write(OpenConnection::LOG, c$conn);
return ALERT_INTERVAL;
}
else
Expand Down

0 comments on commit 8f59afc

Please sign in to comment.