mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
SSH: Register analyzer for 22/tcp.
This commit is contained in:
parent
e6aee5e159
commit
75d7f3414f
1 changed files with 3 additions and 1 deletions
|
@ -76,10 +76,12 @@ redef record connection += {
|
||||||
ssh: Info &optional;
|
ssh: Info &optional;
|
||||||
};
|
};
|
||||||
|
|
||||||
redef likely_server_ports += { 22/tcp };
|
const ports = { 22/tcp };
|
||||||
|
redef likely_server_ports += { ports };
|
||||||
|
|
||||||
event bro_init() &priority=5
|
event bro_init() &priority=5
|
||||||
{
|
{
|
||||||
|
Analyzer::register_for_ports(Analyzer::ANALYZER_SSH, ports);
|
||||||
Log::create_stream(SSH::LOG, [$columns=Info, $ev=log_ssh]);
|
Log::create_stream(SSH::LOG, [$columns=Info, $ev=log_ssh]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue