mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-12 12:55:53 +02:00
add libinjection expr helpers (#2914)
This commit is contained in:
parent
7779c7ff0c
commit
52f86c2d10
3 changed files with 91 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue