From fb03c95d68a7df16e9a43f0e85f648dbb9e8894f Mon Sep 17 00:00:00 2001 From: Carter Li Date: Tue, 23 Jul 2024 18:37:57 +0800 Subject: [PATCH] LM (Linux): improve ssh version detection code --- src/detection/lm/lm_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detection/lm/lm_linux.c b/src/detection/lm/lm_linux.c index fc5ff4bbe..c2cf8d27f 100644 --- a/src/detection/lm/lm_linux.c +++ b/src/detection/lm/lm_linux.c @@ -35,13 +35,12 @@ static const char* getSshdVersion(FFstrbuf* version) { const char* error = ffProcessAppendStdErr(version, (char* const[]) { "sshd", - "-qv", + "-V", NULL }); if (error) return error; - // unknown option -- v // OpenSSH_9.0p1, OpenSSL 3.0.9 30 May 2023... ffStrbufSubstrBeforeFirstC(version, ','); ffStrbufSubstrAfterFirstC(version, '_');