add libinjection expr helpers (#2914)

This commit is contained in:
blotus 2024-03-21 11:39:37 +01:00 committed by GitHub
parent 7779c7ff0c
commit 52f86c2d10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 91 additions and 0 deletions

View file

@ -441,6 +441,20 @@ var exprFuncs = []exprCustomFunc{
new(func(float64, float64) bool),
},
},
{
name: "LibInjectionIsSQLI",
function: LibInjectionIsSQLI,
signature: []interface{}{
new(func(string) bool),
},
},
{
name: "LibInjectionIsXSS",
function: LibInjectionIsXSS,
signature: []interface{}{
new(func(string) bool),
},
},
}
//go 1.20 "CutPrefix": strings.CutPrefix,