From 2d9981946a178e67684cf4797bc22627d18bbffe Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 23 Oct 2018 14:11:16 +0900 Subject: [PATCH] ing --- ftp/ftp.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ftp/ftp.go b/ftp/ftp.go index 8fa83c8..6cdad1f 100644 --- a/ftp/ftp.go +++ b/ftp/ftp.go @@ -37,7 +37,13 @@ func (m *FTPMatcher) Type(matchCtx *osm.MatchCtx) string { return "NETWORK" } func (m *FTPMatcher) Vendor(matchCtx *osm.MatchCtx) string { - return "UNKNOWN" + v := "UNKNOWN" + if _v, ok := matchCtx.GetAttribute("comment"); ok { + if strings.Contains(_v, "Pure-FTPd") { + v = "Pure-FTPd" + } + } + return v } func (m *FTPMatcher) Version(matchCtx *osm.MatchCtx) string {