MCPcopy
hub / github.com/dreadl0ck/netcap / hasWeakKex

Function hasWeakKex

decoder/stream/ssh/ssh_reader.go:615–622  ·  view source on GitHub ↗

hasWeakKex checks if any offered key exchange algorithm is weak

(kexAlgos []string)

Source from the content-addressed store, hash-verified

613
614// hasWeakKex checks if any offered key exchange algorithm is weak
615func hasWeakKex(kexAlgos []string) bool {
616 for _, kex := range kexAlgos {
617 if weakKexAlgorithms[kex] {
618 return true
619 }
620 }
621 return false
622}
623
624// hasWeakCipher checks if any offered cipher is weak
625func hasWeakCipher(ciphers []string) bool {

Callers 1

searchKexInitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected