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

Function hasWeakMAC

decoder/stream/ssh/ssh_reader.go:635–642  ·  view source on GitHub ↗

hasWeakMAC checks if any offered MAC algorithm is weak

(macs []string)

Source from the content-addressed store, hash-verified

633
634// hasWeakMAC checks if any offered MAC algorithm is weak
635func hasWeakMAC(macs []string) bool {
636 for _, mac := range macs {
637 if weakMACs[mac] {
638 return true
639 }
640 }
641 return false
642}
643
644// extractSoftwareVersion extracts the software version from SSH ident string
645func extractSoftwareVersion(ident string) string {

Callers 1

searchKexInitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected