From 0b8d3d1178ac1f6f372dda3d71155fd0211e34ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20B=C3=A4umer?= Date: Mon, 18 Dec 2023 13:52:09 +0100 Subject: [PATCH] fix: Detection of "strict kex" --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9bede44..f18c434 100644 --- a/main.go +++ b/main.go @@ -229,7 +229,7 @@ func performVulnerabilityScan(address string, scanMode ScanMode) (*TerrapinVulne (slices.ContainsFunc(remoteKexInit.EncryptionAlgorithmsServerToClient, hasSuffix(CbcSuffix)) && slices.ContainsFunc(remoteKexInit.MacAlgorithmsServerToClient, hasSuffix(EtmSuffix))) report.SupportsStrictKex = slices.Contains(remoteKexInit.KexAlgorithms, KexStrictIndicatorServer) - if scanMode == ServerScan { + if scanMode == ClientScan { report.SupportsStrictKex = slices.Contains(remoteKexInit.KexAlgorithms, KexStrictIndicatorClient) } return report, nil