spray/pkg/fingers.go

24 lines
582 B
Go
Raw Normal View History

2024-02-20 18:25:43 +08:00
package pkg
import (
"bytes"
2024-03-04 20:03:06 +08:00
"github.com/chainreactors/fingers/common"
"net/http"
2024-02-20 18:25:43 +08:00
)
// gogo fingers engine
2024-03-04 20:03:06 +08:00
func FingersDetect(content []byte) common.Frameworks {
2024-05-16 18:35:39 +08:00
frames, _ := FingerEngine.FingersEngine.HTTPMatch(bytes.ToLower(content), "")
2024-03-04 20:03:06 +08:00
return frames
}
func FingerPrintHubDetect(header http.Header, body string) common.Frameworks {
frames := FingerEngine.FingerPrintEngine.Match(header, body)
return frames
}
func WappalyzerDetect(header http.Header, body []byte) common.Frameworks {
frames := FingerEngine.WappalyzerEngine.Fingerprint(header, body)
2024-02-20 18:25:43 +08:00
return frames
}