Skip to content

Commit

Permalink
fixed test cases for Firebird - #312
Browse files Browse the repository at this point in the history
  • Loading branch information
bdamele committed Jan 18, 2013
1 parent edeb181 commit 56eaa07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions lib/core/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ def runCase(switches=None, parse=None):

console = getUnicode(console, system=True)

print "result:", result
print "console:", console

if parse and retVal:
with codecs.open(conf.dumper.getOutputFile(), "rb", UNICODE_ENCODING) as f:
content = f.read()
Expand Down
14 changes: 8 additions & 6 deletions xml/livetests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@
</switches>
<parse>
<item value="Title: AND boolean-based blind - WHERE or HAVING clause"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 (dialect 3)'"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 \(dialect 3\)'"/>
<item value="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/>
Expand Down Expand Up @@ -953,7 +953,7 @@
</switches>
<parse>
<item value="Title: AND boolean-based blind - WHERE or HAVING clause"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 (dialect 3)'"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 \(dialect 3\)'"/>
<item value="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/>
Expand All @@ -968,6 +968,7 @@
<item value="r'Database: Firebird_masterdb.+Table: USERS.+5 entries.+luther.+nameisnull.+'"/>
</parse>
</case>
<!-- TODO: this test case fails because of issue #357 -->
<case name="Firebird UNION query multi-threaded enumeration - all entries">
<switches>
<url value="http://debiandev/sqlmap/firebird/get_int.php?id=1"/>
Expand All @@ -992,7 +993,7 @@
</switches>
<parse>
<item value="Title: Generic UNION query (NULL) - 3 columns"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 (dialect 3)'"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 \(dialect 3\)'"/>
<item value="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/>
Expand All @@ -1007,6 +1008,7 @@
<item value="r'Database: Firebird_masterdb.+Table: USERS.+5 entries.+luther.+nameisnull.+'"/>
</parse>
</case>
<!-- TODO: this test case fails because of issue #357 -->
<case name="Firebird partial UNION query multi-threaded enumeration - all entries">
<switches>
<url value="http://debiandev/sqlmap/firebird/get_int_partialunion.php?id=1"/>
Expand All @@ -1031,7 +1033,7 @@
</switches>
<parse>
<item value="Title: Generic UNION query (NULL) - 3 columns"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 (dialect 3)'"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 \(dialect 3\)'"/>
<item value="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/>
Expand All @@ -1057,7 +1059,7 @@
<isDba value="True"/>
</switches>
<parse>
<item value="Title: Firebird AND time-based blind \(heavy query\)"/>
<item value="Title: Firebird AND time-based blind (heavy query)"/>
<item value="banner: '2.5.0'"/>
<item value="current user is DBA: True"/>
</parse>
Expand Down Expand Up @@ -1086,7 +1088,7 @@
</switches>
<parse>
<item value="Title: Firebird inline queries"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 (dialect 3)'"/>
<item value="r'back-end DBMS: active fingerprint: Firebird 2.1 \(dialect 3\)'"/>
<item value="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/>
Expand Down

0 comments on commit 56eaa07

Please sign in to comment.