INNER CODE UNIT · Go

primaryProductName

projectdiscovery/httpx · runner/cpe.go:195

func primaryProductName(product string) string {
	product = strings.TrimSpace(product)
	if idx := strings.Index(product, ","); idx >= 0 {
		product = strings.TrimSpace(product[:idx])
	}
	return product
}

// productLookupKeys returns normalized lookup keys for joining a CPE product
// name to wappalyzer technology names. Keys are ordered most-specific first;
// the first key with a version match wins.
func productLookupKeys(product string) []string {
	product = primaryProductName(product)
	if product == "" {
		return nil
	}

	seen := make(map[string]struct{})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…