19 lines
489 B
Go
19 lines
489 B
Go
//go:build !windows && !linux
|
|
|
|
package vulnprobe
|
|
|
|
import "runtime"
|
|
|
|
// ProbeHost returns minimal context on unsupported platforms.
|
|
func ProbeHost(listeningPorts map[int]bool, osVersion string) HostContext {
|
|
return HostContext{
|
|
Platform: runtime.GOOS,
|
|
OSVersion: osVersion,
|
|
LastPatchDays: -1,
|
|
ListeningPorts: listeningPorts,
|
|
ProbeError: "vuln probe not implemented for " + runtime.GOOS,
|
|
}
|
|
}
|
|
|
|
func linuxPackageFindings(_ HostContext) []VulnFinding { return nil }
|