mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
24 lines
567 B
Text
24 lines
567 B
Text
# @TEST-EXEC: bro %INPUT >output 2>&1
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
type Version: record {
|
|
major: count &optional;
|
|
minor: count &optional;
|
|
minor2: count &optional;
|
|
addl: string &optional;
|
|
};
|
|
|
|
type Info: record {
|
|
name: string;
|
|
version: Version;
|
|
};
|
|
|
|
global matched_software: table[string] of Info = {
|
|
["OpenSSH_4.4"] = [$name="OpenSSH", $version=[$major=4,$minor=4]],
|
|
};
|
|
|
|
event bro_init()
|
|
{
|
|
for ( sw in matched_software )
|
|
print matched_software[sw]$version;
|
|
}
|