spray/pkg/fingers.go

18 lines
369 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-07-01 19:51:16 +08:00
frames, _ := FingerEngine.Fingers().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
}