mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
add JA4H expr helper (#3401)
This commit is contained in:
parent
a3187d6f2c
commit
ce5b4b435b
7 changed files with 656 additions and 6 deletions
13
pkg/exprhelpers/waf.go
Normal file
13
pkg/exprhelpers/waf.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package exprhelpers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/crowdsecurity/crowdsec/pkg/appsec/ja4h"
|
||||
)
|
||||
|
||||
// JA4H(req *http.Request) string
|
||||
func JA4H(params ...any) (any, error) {
|
||||
req := params[0].(*http.Request)
|
||||
return ja4h.JA4H(req), nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue