crowdsec/pkg/exprhelpers/libinjection.go

18 lines
338 B
Go
Raw Permalink Normal View History

2024-03-21 10:39:37 +00:00
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
}