crowdsec/pkg/exprhelpers/libinjection.go
2024-03-21 11:39:37 +01:00

17 lines
338 B
Go

package exprhelpers
import "github.com/corazawaf/libinjection-go"
func LibInjectionIsSQLI(params ...any) (any, error) {
str := params[0].(string)
ret, _ := libinjection.IsSQLi(str)
return ret, nil
}
func LibInjectionIsXSS(params ...any) (any, error) {
str := params[0].(string)
ret := libinjection.IsXSS(str)
return ret, nil
}