spray/pkg/fingers.go

24 lines
578 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 {
frames, _ := FingerEngine.FingersEngine.Match(bytes.ToLower(content), "")
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
}