Added Libjection tests

This commit is contained in:
Breno Silva 2013-04-18 23:05:24 -04:00
parent e97c12f8a2
commit c5e4605046
2 changed files with 20 additions and 1 deletions

View File

@ -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
View 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
}