INNER CODE UNIT · Go

fallbackProductLookupKeys

projectdiscovery/httpx · runner/cpe.go:258

func fallbackProductLookupKeys(product string) []string {
	product = primaryProductName(product)
	if product == "" {
		return nil
	}

	seen := make(map[string]struct{})
	keys := make([]string, 0, 3)
	addKey := func(raw string) {
		key := normalizeProductName(raw)
		if key == "" {
			return
		}
		if _, ok := seen[key]; ok {
			return
		}
		seen[key] = struct{}{}
		keys = append(keys, key)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…