fixed test cases for Firebird - #312

This commit is contained in:
Bernardo Damele 2013-01-18 23:32:39 +00:00
parent edeb181c4f
commit 56eaa073ce
2 changed files with 11 additions and 6 deletions

View File

@ -275,6 +275,9 @@ def runCase(switches=None, parse=None):
console = getUnicode(console, system=True) console = getUnicode(console, system=True)
print "result:", result
print "console:", console
if parse and retVal: if parse and retVal:
with codecs.open(conf.dumper.getOutputFile(), "rb", UNICODE_ENCODING) as f: with codecs.open(conf.dumper.getOutputFile(), "rb", UNICODE_ENCODING) as f:
content = f.read() content = f.read()

View File

@ -913,7 +913,7 @@
</switches> </switches>
<parse> <parse>
<item value="Title: AND boolean-based blind - WHERE or HAVING clause"/> <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="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/> <item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/> <item value="current database: '/'"/>
@ -953,7 +953,7 @@
</switches> </switches>
<parse> <parse>
<item value="Title: AND boolean-based blind - WHERE or HAVING clause"/> <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="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/> <item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/> <item value="current database: '/'"/>
@ -968,6 +968,7 @@
<item value="r'Database: Firebird_masterdb.+Table: USERS.+5 entries.+luther.+nameisnull.+'"/> <item value="r'Database: Firebird_masterdb.+Table: USERS.+5 entries.+luther.+nameisnull.+'"/>
</parse> </parse>
</case> </case>
<!-- TODO: this test case fails because of issue #357 -->
<case name="Firebird UNION query multi-threaded enumeration - all entries"> <case name="Firebird UNION query multi-threaded enumeration - all entries">
<switches> <switches>
<url value="http://debiandev/sqlmap/firebird/get_int.php?id=1"/> <url value="http://debiandev/sqlmap/firebird/get_int.php?id=1"/>
@ -992,7 +993,7 @@
</switches> </switches>
<parse> <parse>
<item value="Title: Generic UNION query (NULL) - 3 columns"/> <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="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/> <item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/> <item value="current database: '/'"/>
@ -1007,6 +1008,7 @@
<item value="r'Database: Firebird_masterdb.+Table: USERS.+5 entries.+luther.+nameisnull.+'"/> <item value="r'Database: Firebird_masterdb.+Table: USERS.+5 entries.+luther.+nameisnull.+'"/>
</parse> </parse>
</case> </case>
<!-- TODO: this test case fails because of issue #357 -->
<case name="Firebird partial UNION query multi-threaded enumeration - all entries"> <case name="Firebird partial UNION query multi-threaded enumeration - all entries">
<switches> <switches>
<url value="http://debiandev/sqlmap/firebird/get_int_partialunion.php?id=1"/> <url value="http://debiandev/sqlmap/firebird/get_int_partialunion.php?id=1"/>
@ -1031,7 +1033,7 @@
</switches> </switches>
<parse> <parse>
<item value="Title: Generic UNION query (NULL) - 3 columns"/> <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="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/> <item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/> <item value="current database: '/'"/>
@ -1057,7 +1059,7 @@
<isDba value="True"/> <isDba value="True"/>
</switches> </switches>
<parse> <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="banner: '2.5.0'"/>
<item value="current user is DBA: True"/> <item value="current user is DBA: True"/>
</parse> </parse>
@ -1086,7 +1088,7 @@
</switches> </switches>
<parse> <parse>
<item value="Title: Firebird inline queries"/> <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="banner: '2.5.0'"/>
<item value="current user: 'SYSDBA'"/> <item value="current user: 'SYSDBA'"/>
<item value="current database: '/'"/> <item value="current database: '/'"/>