spray/pkg/fingers.go

18 lines
373 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"
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
}
2024-06-29 03:56:44 +08:00
func EngineDetect(content []byte) common.Frameworks {
frames, _ := FingerEngine.DetectContent(content)
2024-02-20 18:25:43 +08:00
return frames
}