Skip to content

Commit

Permalink
fix: Detection of "strict kex"
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueSkrillor committed Dec 18, 2023
1 parent 7fab81f commit 0b8d3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b8d3d1

Please # to comment.