mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
63 lines
788 B
Perl
63 lines
788 B
Perl
### Empty
|
|
{
|
|
type => "op",
|
|
name => "rx",
|
|
param => "",
|
|
input => "",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "rx",
|
|
param => "TestCase",
|
|
input => "",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "rx",
|
|
param => "",
|
|
input => "TestCase",
|
|
ret => 1,
|
|
},
|
|
|
|
### General
|
|
{
|
|
type => "op",
|
|
name => "rx",
|
|
param => "abc",
|
|
input => "abcdefghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "rx",
|
|
param => "def",
|
|
input => "abcdefghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "rx",
|
|
param => "ghi",
|
|
input => "abcdefghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "rx",
|
|
param => "ghij",
|
|
input => "abcdefghi",
|
|
ret => 0,
|
|
},
|
|
|
|
### Complex regex
|
|
{
|
|
type => "op",
|
|
name => "rx",
|
|
param => "(?i:(sleep\\((\\s*?)(\\d*?)(\\s*?)\\)|benchmark\\((.*?)\\,(.*?)\\)))",
|
|
input => "SELECT pg_sleep(10);",
|
|
ret => 1,
|
|
},
|
|
|