2024-02-20 18:25:43 +08:00
|
|
|
package pkg
|
|
|
|
|
|
|
|
import (
|
2024-02-20 21:09:00 +08:00
|
|
|
"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
|
|
|
|
}
|