mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Added Libjection tests
This commit is contained in:
parent
e97c12f8a2
commit
c5e4605046
@ -21,7 +21,8 @@ msc_test_SOURCES = msc_test.c \
|
||||
$(top_srcdir)/apache2/msc_gsb.c \
|
||||
$(top_srcdir)/apache2/acmp.c \
|
||||
$(top_srcdir)/apache2/msc_lua.c \
|
||||
$(top_srcdir)/apache2/msc_release.c
|
||||
$(top_srcdir)/apache2/msc_release.c \
|
||||
$(top_srcdir)/apache2/libinjection/sqlparse.c
|
||||
msc_test_CFLAGS = @APXS_CFLAGS@ @APR_CFLAGS@ @APU_CFLAGS@ \
|
||||
@PCRE_CFLAGS@ @LIBXML2_CFLAGS@ @MODSEC_EXTRA_CFLAGS@ @LUA_CFLAGS@
|
||||
msc_test_CPPFLAGS = -I$(top_srcdir)/apache2 \
|
||||
|
18
tests/op/detectSQLi.t
Normal file
18
tests/op/detectSQLi.t
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
type => "op",
|
||||
name => "issqli",
|
||||
input => "",
|
||||
ret => 0
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "issqli",
|
||||
input => "this is not isqli",
|
||||
ret => 0
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "issqli",
|
||||
input => "ascii(substring(version() from 1 for 1))",
|
||||
ret => 1
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user