From f34ed32de33e8ee3baa6aa4df54b97438f0f2403 Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 23 Oct 2018 14:07:35 +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 da5fab2..8fa83c8 100644 --- a/ftp/ftp.go +++ b/ftp/ftp.go @@ -53,7 +53,13 @@ func (m *FTPMatcher) OsVersion(matchCtx *osm.MatchCtx) string { } func (m *FTPMatcher) Name(matchCtx *osm.MatchCtx) string { - return "FTP" + name := "FTP" + if v, ok := matchCtx.GetAttribute("comment"); ok { + if strings.Contains(v, "Pure-FTPd") { + name = "Pure-FTPd" + } + } + return name } func (m *FTPMatcher) IsPrePacket() bool {