mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Software framework stores ports for server software.
This commit is contained in:
parent
f1e132cd1a
commit
707926aaa4
4 changed files with 49 additions and 27 deletions
|
@ -24,6 +24,6 @@ event ssh_server_version(c: connection, version: string) &priority=4
|
|||
{
|
||||
# Get rid of the protocol information when passing to the software framework.
|
||||
local cleaned_version = sub(version, /SSH[0-9\.\-]{2,}/, "");
|
||||
local si = Software::parse(cleaned_version, c$id$resp_h, SERVER);
|
||||
local si = Software::parse_with_port(cleaned_version, c$id$resp_h, c$id$resp_p, SERVER);
|
||||
Software::found(c$id, si);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue