Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
50091101
Commit
50091101
authored
10 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Updated tests
Former-commit-id: 84c7eff04489162a0d9321140d13db5e0b81ae5d
parent
1ca58584
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
appfw/tests/mysql/mysql.intercept.test.sh
+6
-6
6 additions, 6 deletions
appfw/tests/mysql/mysql.intercept.test.sh
with
6 additions
and
6 deletions
appfw/tests/mysql/mysql.intercept.test.sh
+
6
−
6
View file @
50091101
...
...
@@ -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
"inject
ion
"
$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
"inject
ion
"
$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
"inject
ion
"
$tmp
if
[
!
$?
-eq
0
]
;
then
cat
$tmp
cleanup 4
"False negative detected: should have intercepted and stopped attack query"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment