projectdiscovery / wappalyzergo

A high performance go implementation of Wappalyzer Technology Detection Library
MIT License
698 stars 107 forks source link

Underreporting bug #5

Closed shadow1ng closed 2 years ago

shadow1ng commented 3 years ago
package main

import (
    "fmt"
    wappalyzer "github.com/projectdiscovery/wappalyzergo"
)

func main() {
    wappalyzerClient, _ := wappalyzer.New()
    fingerprints := wappalyzerClient.Fingerprint(map[string][]string{
        "Set-Cookie": []string{"path=/;  jsessionid=111; path=/, jsessionid=111;"},
    }, []byte(""))
    fingerprints1 := wappalyzerClient.Fingerprint(map[string][]string{
        "Set-Cookie": []string{"jsessionid=111; path=/;"},
    }, []byte(""))

    fmt.Println(fingerprints)
    fmt.Println(fingerprints1)
}

output:

map[]
map[Java:{}]

If the value changes position, the test will fail

ehsandeep commented 2 years ago

@shadow1ng this is now fixed.