@@ -143,15 +143,29 @@ def bedTest():
143143 """
144144
145145 TESTS = (
146- ("-u 'http://testbed/postgresql/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 -v 3 --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" , "Vector: AND [INFERENCE]" , "it looks like the back-end DBMS is 'PostgreSQL'" , "the back-end DBMS is PostgreSQL" , "current user is DBA: False" , ": 'foobar'" )),
147- ("-u 'http://testbed/postgresql/get_int.php?id=1' --flush-session --technique=U --is-dba -v 3 --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'" )),
148- ("-u 'http://testbed/postgresql/get_int.php?id=1' --flush-session --technique=U --hex --banner --current-user --current-db --search -C surname --answers='dump=n'" , ("x86_64-pc-linux-gnu" , "current schema (equivalent to database on PostgreSQL): 'public'" , "current user: 'testuser'" , "[1 column]" , "| surname | varchar |" )),
149- ("-u 'http://testbed/altibase/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 -v 3 --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" , "Vector: AND [INFERENCE]" , "back-end DBMS could be 'Altibase'" , "the back-end DBMS is Altibase" , "current user is DBA: True" , ": 'foobar'" )),
150- ("-u 'http://testbed/altibase/get_int.php?id=1' --flush-session --technique=U --is-dba -v 3 --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'" )),
146+ # Altibase
147+ ("-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'" )),
148+ ("-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'" )),
151149 ("-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 |" )),
152- ("-u 'http://testbed/cockroachdb/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 -v 3 --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" , "Vector: AND [INFERENCE]" , "back-end DBMS could be 'PostgreSQL'" , "the back-end DBMS is PostgreSQL" , "current user is DBA: True" , ": 'foobar'" )),
153- ("-u 'http://testbed/cockroachdb/get_int.php?id=1' --flush-session --technique=U --is-dba -v 3 --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'" )),
154- ("-u 'http://testbed/cockroachdb/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 schema (equivalent to database on PostgreSQL): 'public'" , "current user: 'root'" , "[1 column]" , "| surname | varchar |" )),
150+
151+ # CrateDB
152+ ("-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'" )),
153+ ("-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 |" )),
154+
155+ # CockroachDB
156+ ("-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'" )),
157+ ("-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'" )),
158+ ("-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 |" )),
159+
160+ # MySQL
161+ ("-u 'http://testbed/mysql/get_int.php?id=1' --flush-session --technique=B --is-dba --threads=4 --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("8.0.19" , "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'" )),
162+ ("-u 'http://testbed/mysql/get_int.php?id=1' --flush-session --technique=U --is-dba --dump -D CD --banner --sql-query=\" SELECT 'foobar'\" " , ("8.0.19" , "Database: testdb" , "Table: testusers" , "5 entries" , "id" , "name" , "surname" , "luther" , "blisset" , "NULL" , "Title: Generic UNION query (NULL) - 3 columns" , "the back-end DBMS is MySQL" , "appears to have 3 columns" , "current user is DBA: True" , ": 'foobar'" )),
163+ ("-u 'http://testbed/mysql/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: MySQL >= 5.1 AND error-based" , "Title: MySQL >= 5.0.12 AND time-based blind" , "Title: Generic UNION query (NULL) - 3 columns" , "8.0.19" , "current database: 'testdb'" , "current user: 'root@%'" , "[1 column]" , "| surname | varchar(1000) |" )),
164+
165+ # PostgreSQL
166+ ("-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'" )),
167+ ("-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'" )),
168+ ("-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 |" )),
155169 )
156170
157171 retVal = True
0 commit comments