Skip to content
Snippets Groups Projects
Commit 50091101 authored by an7s's avatar an7s
Browse files

Updated tests

Former-commit-id: 84c7eff04489162a0d9321140d13db5e0b81ae5d
parent 1ca58584
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,8 @@ fi
#
rm -f $tmp
QUERY_DATA="David' or '0'='0" ./testintercept.exe.peasoup > $tmp 2>&1
grep -i "inject" $tmp
APPFW_VERBOSE=1 QUERY_DATA="David' or '0'='0" ./testintercept.exe.peasoup > $tmp 2>&1
grep -i "injection" $tmp
if [ ! $? -eq 0 ]; then
cat $tmp
cleanup 2 "False negative detected: should have intercepted and stopped attack query"
......@@ -87,8 +87,8 @@ fi
# test interception of mysql_real_connect
#
rm -f $tmp
QUERY_DATA="David' or '0'='0" ./testintercept2.exe.peasoup > $tmp 2>&1
grep -i "inject" $tmp
APPFW_VERBOSE=1 QUERY_DATA="David' or '0'='0" ./testintercept2.exe.peasoup > $tmp 2>&1
grep -i "injection" $tmp
if [ ! $? -eq 0 ]; then
cat $tmp
cleanup 3 "False negative detected: should have intercepted and stopped attack query"
......@@ -98,8 +98,8 @@ fi
# test interception of mysql_stmt_prepare
#
rm -f $tmp
QUERY_DATA=" or 1 = 1 " ./testintercept.pstmt.exe.peasoup >$tmp 2>&1
grep -i "inject" $tmp
APPFW_VERBOSE=1 QUERY_DATA=" or 1 = 1 " ./testintercept.pstmt.exe.peasoup >$tmp 2>&1
grep -i "injection" $tmp
if [ ! $? -eq 0 ]; then
cat $tmp
cleanup 4 "False negative detected: should have intercepted and stopped attack query"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment