@@ -144,9 +144,9 @@ def bedTest():
144144
145145 TESTS = (
146146 # MaxDB
147- ("-u 'http://testbed/maxdb/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("Kernel____7.9.10___Build_003-123-265-343" , "Database: TESTB " , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "back-end DBMS could be 'SAP MaxDB'" , "the back-end DBMS is SAP MaxDB" , "current user is DBA: True" , ": 'foobar'" )),
148- ("-u 'http://testbed/maxdb/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("Kernel____7.9.10___Build_003-123-265-343" , "Database: TESTDB " , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is SAP MaxDB" , "appears to have 3 columns" , "current user is DBA: True" , ": 'foobar'" )),
149- ("-u 'http://testbed/maxdb/get_int.php?id=1' --flush-session --technique=U --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Kernel____7.9.10___Build_003-123-265-343" , "current user (equivalent to database on Altibase ): 'SYS'" , "current user: 'DBADMIN'" , "[1 column]" , "| SURNAME | VARCHAR |" )),
147+ ("-u 'http://testbed/maxdb/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("Kernel____7.9.10___Build_003-123-265-343" , "Database: DBADMIN " , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "it looks like the back-end DBMS is 'SAP MaxDB'" , "the back-end DBMS is SAP MaxDB" , "current user is DBA: True" , ": 'foobar'" )),
148+ ("-u 'http://testbed/maxdb/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("Kernel____7.9.10___Build_003-123-265-343" , "Database: DBADMIN " , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is SAP MaxDB" , "appears to have 3 columns" , "current user is DBA: True" , ": 'foobar'" )),
149+ ("-u 'http://testbed/maxdb/get_int.php?id=1' --flush-session --technique=U --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Kernel____7.9.10___Build_003-123-265-343" , "current database (equivalent to owner on SAP MaxDB ): 'SYS'" , "current user: 'DBADMIN'" , "[1 column]" , "| SURNAME | VARCHAR |" )),
150150
151151 # Informix
152152 ("-u 'http://testbed/informix/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("IBM Informix Dynamic Server Version 14.10.FC2DE" , "Database: testdb" , "Table: users" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "back-end DBMS could be 'Informix'" , "the back-end DBMS is Informix" , "current user is DBA: True" , ": 'foobar'" )),
@@ -155,17 +155,17 @@ def bedTest():
155155 # Altibase
156156 ("-u 'http://testbed/altibase/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("x86_64-unknown-linux-gnu" , "Database: SYS" , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "back-end DBMS could be 'Altibase'" , "the back-end DBMS is Altibase" , "current user is DBA: True" , ": 'foobar'" )),
157157 ("-u 'http://testbed/altibase/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("x86_64-unknown-linux-gnu" , "Database: SYS" , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is Altibase" , "appears to have 3 columns" , "current user is DBA: True" , ": 'foobar'" )),
158- ("-u 'http://testbed/altibase/get_int.php?id=1' --flush-session --technique=U --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("x86_64-unknown-linux-gnu" , "current user (equivalent to database on Altibase): 'SYS'" , "current user: 'SYS'" , "[1 column]" , "| SURNAME | VARCHAR |" )),
158+ ("-u 'http://testbed/altibase/get_int.php?id=1' --flush-session --technique=U --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("x86_64-unknown-linux-gnu" , "current database (equivalent to owner on Altibase): 'SYS'" , "current user: 'SYS'" , "[1 column]" , "| SURNAME | VARCHAR |" )),
159159
160160 # CockroachDB
161161 ("-u 'http://testbed/cockroachdb/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("x86_64-unknown-linux-gnu" , "CockroachDB fork" , "Database: public" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "back-end DBMS could be 'PostgreSQL'" , "the back-end DBMS is PostgreSQL" , "current user is DBA: True" , ": 'foobar'" )),
162162 ("-u 'http://testbed/cockroachdb/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("x86_64-unknown-linux-gnu" , "CockroachDB fork" , "Database: public" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is PostgreSQL" , "appears to have 3 columns" , "current user is DBA: True" , ": 'foobar'" )),
163163 ("-u 'http://testbed/cockroachdb/get_int.php?id=1' --flush-session --technique=E --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("x86_64-unknown-linux-gnu" , "CockroachDB fork" , "Database: public" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Title: PostgreSQL AND error-based" , "the back-end DBMS is PostgreSQL" , "current user is DBA: True" , ": 'foobar'" )),
164- ("-u 'http://testbed/cockroachdb/get_int.php?id=1' --flush-session --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Title: AND boolean-based blind" , "Title: PostgreSQL AND error-based" , "Title: PostgreSQL > 8.1 stacked queries" , "Title: PostgreSQL > 8.1 AND time-based blind" , "Title: Generic UNION query (NULL) - 3 columns" , "x86_64-unknown-linux-gnu" , "current schema (equivalent to database on PostgreSQL): 'public'" , "current user: 'root'" , "[1 column]" , "| surname | varchar |" )),
164+ ("-u 'http://testbed/cockroachdb/get_int.php?id=1' --flush-session --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Title: AND boolean-based blind" , "Title: PostgreSQL AND error-based" , "Title: PostgreSQL > 8.1 stacked queries" , "Title: PostgreSQL > 8.1 AND time-based blind" , "Title: Generic UNION query (NULL) - 3 columns" , "x86_64-unknown-linux-gnu" , "current database (equivalent to schema on PostgreSQL): 'public'" , "current user: 'root'" , "[1 column]" , "| surname | varchar |" )),
165165
166166 # CrateDB
167167 ("-u 'http://testbed/cratedb/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("4.0.10" , "Database: doc" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "back-end DBMS could be 'CrateDB'" , "the back-end DBMS is CrateDB" , "current user is DBA: True" , ": 'foobar'" )),
168- ("-u 'http://testbed/cratedb/get_int.php?id=1' --flush-session --technique=B --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("4.0.10" , "current schema (equivalent to database on CrateDB): 'doc'" , "current user: 'crate'" , "[1 column]" , "| surname |" )),
168+ ("-u 'http://testbed/cratedb/get_int.php?id=1' --flush-session --technique=B --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("4.0.10" , "current database (equivalent to schema on CrateDB): 'doc'" , "current user: 'crate'" , "[1 column]" , "| surname |" )),
169169
170170 # Drizzle
171171 ("-u 'http://testbed/drizzle/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("7.1.36-stable" , "Drizzle fork" , "Database: testdb" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "it looks like the back-end DBMS is 'MySQL'" , "the back-end DBMS is MySQL" , "current user is DBA: True" , ": 'foobar'" )),
@@ -180,17 +180,17 @@ def bedTest():
180180 # H2
181181 ("-u 'http://testbed/h2/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("1.4.192" , "Database: PUBLIC" , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "back-end DBMS could be 'H2'" , "the back-end DBMS is H2" , "current user is DBA: True" , ": 'foobar'" )),
182182 ("-u 'http://testbed/h2/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("1.4.192" , "Database: PUBLIC" , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is H2" , "appears to have 3 columns" , "current user is DBA: True" , ": 'foobar'" )),
183- ("-u 'http://testbed/h2/get_int.php?id=1' --flush-session --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Title: AND boolean-based blind" , "Title: Generic inline queries" , "Title: Generic UNION query (NULL) - 3 columns" , "1.4.192" , "current schema (equivalent to database on H2): 'PUBLIC'" , "current user: 'SA'" , "[1 column]" , "| SURNAME | VARCHAR |" )),
183+ ("-u 'http://testbed/h2/get_int.php?id=1' --flush-session --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Title: AND boolean-based blind" , "Title: Generic inline queries" , "Title: Generic UNION query (NULL) - 3 columns" , "1.4.192" , "current database (equivalent to schema on H2): 'PUBLIC'" , "current user: 'SA'" , "[1 column]" , "| SURNAME | VARCHAR |" )),
184184
185185 # HSQLDB
186186 ("-u 'http://testbed/hsqldb/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("2.3.4" , "Database: PUBLIC" , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "it looks like the back-end DBMS is 'HSQLDB'" , "the back-end DBMS is HSQLDB" , "current user is DBA: True" , ": 'foobar'" )),
187187 ("-u 'http://testbed/hsqldb/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("2.3.4" , "Database: PUBLIC" , "Table: TESTUSERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is HSQLDB" , "appears to have 3 columns" , "current user is DBA: True" , ": 'foobar'" )),
188- ("-u 'http://testbed/hsqldb/get_int.php?id=1' --flush-session --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Title: AND boolean-based blind" , "Title: HSQLDB > 2.0 AND time-based blind (heavy query)" , "Title: Generic UNION query (NULL) - 3 columns" , "2.3.4" , "current schema (equivalent to database on HSQLDB): 'PUBLIC'" , "current user: 'SA'" , "[1 column]" , "| SURNAME | VARCHAR |" )),
188+ ("-u 'http://testbed/hsqldb/get_int.php?id=1' --flush-session --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Title: AND boolean-based blind" , "Title: HSQLDB > 2.0 AND time-based blind (heavy query)" , "Title: Generic UNION query (NULL) - 3 columns" , "2.3.4" , "current database (equivalent to schema on HSQLDB): 'PUBLIC'" , "current user: 'SA'" , "[1 column]" , "| SURNAME | VARCHAR |" )),
189189
190190 # IBM DB2
191191 ("-u 'http://testbed/db2/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("banner: 'DB2 v" , "Database: DB2INST1" , "Table: USERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "it looks like the back-end DBMS is 'IBM DB2'" , "the back-end DBMS is IBM DB2" , "current user is DBA: True" , ": 'foobar'" )),
192192 ("-u 'http://testbed/db2/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("banner: 'DB2 v" , "Database: DB2INST1" , "Table: USERS" , "5 entries" , "ID" , "NAME" , "SURNAME" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is IBM DB2" , "appears to have 3 columns" , "current user is DBA: True" , ": 'foobar'" )),
193- ("-u 'http://testbed/db2/get_int.php?id=1' --flush-session --technique=U --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("banner: 'DB2 v" , "current user (equivalent to database on IBM DB2): 'DB2INST1'" , "current user: 'DB2INST1'" , "[1 column]" , "| SURNAME | VARCHAR(1000) |" )),
193+ ("-u 'http://testbed/db2/get_int.php?id=1' --flush-session --technique=U --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("banner: 'DB2 v" , "current database (equivalent to owner on IBM DB2): 'DB2INST1'" , "current user: 'DB2INST1'" , "[1 column]" , "| SURNAME | VARCHAR(1000) |" )),
194194
195195 # MariaDB
196196 ("-u 'http://testbed/mariadb/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("10.4.12-MariaDB-1:10.4.12+maria~bionic" , "MariaDB fork" , "Database: testdb" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "it looks like the back-end DBMS is 'MySQL'" , "the back-end DBMS is MySQL" , "current user is DBA: True" , ": 'foobar'" )),
@@ -207,7 +207,7 @@ def bedTest():
207207 # PostgreSQL
208208 ("-u 'http://testbed/postgresql/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("x86_64-pc-linux-gnu" , "Database: public" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Payload: id=1 AND " , "it looks like the back-end DBMS is 'PostgreSQL'" , "the back-end DBMS is PostgreSQL" , "current user is DBA: False" , ": 'foobar'" )),
209209 ("-u 'http://testbed/postgresql/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("x86_64-pc-linux-gnu" , "Database: public" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is PostgreSQL" , "appears to have 3 columns" , "current user is DBA: False" , ": 'foobar'" )),
210- ("-u 'http://testbed/postgresql/get_int.php?id=1' --flush-session --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Title: AND boolean-based blind" , "Title: PostgreSQL AND error-based" , "Title: PostgreSQL > 8.1 stacked queries" , "Title: PostgreSQL > 8.1 AND time-based blind" , "Title: Generic UNION query (NULL) - 3 columns" , "x86_64-pc-linux-gnu" , "current schema (equivalent to database on PostgreSQL): 'public'" , "current user: 'testuser'" , "[1 column]" , "| surname | varchar |" )),
210+ ("-u 'http://testbed/postgresql/get_int.php?id=1' --flush-session --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("Title: AND boolean-based blind" , "Title: PostgreSQL AND error-based" , "Title: PostgreSQL > 8.1 stacked queries" , "Title: PostgreSQL > 8.1 AND time-based blind" , "Title: Generic UNION query (NULL) - 3 columns" , "x86_64-pc-linux-gnu" , "current database (equivalent to schema on PostgreSQL): 'public'" , "current user: 'testuser'" , "[1 column]" , "| surname | varchar |" )),
211211 )
212212
213213 retVal = True
0 commit comments