Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc5a7e4

Browse files
committed
done with DB2 test cases (issue #312)
1 parent f3cead1 commit bc5a7e4

1 file changed

Lines changed: 117 additions & 2 deletions

File tree

xml/livetests.xml

Lines changed: 117 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,101 @@
21842184
<item value="r'Database: SYS.+Table: USERS.+1 column.+SURNAME.+VARCHAR2'"/>
21852185
</parse>
21862186
</case>
2187-
<!-- TODO: add IBM DB2 test cases -->
2187+
<case name="IBM DB2 boolean-based multi-threaded search enumeration - database">
2188+
<switches>
2189+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2190+
<threads value="4"/>
2191+
<tech value="B"/>
2192+
<search value="True"/>
2193+
<db value="d"/>
2194+
</switches>
2195+
<parse>
2196+
<item value="r'found databases.+:.+\[\*\] DB2INST1.+\[\*\] SYSIBMADM'"/>
2197+
</parse>
2198+
</case>
2199+
<case name="IBM DB2 boolean-based multi-threaded search enumeration - tables given database">
2200+
<switches>
2201+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2202+
<threads value="4"/>
2203+
<tech value="B"/>
2204+
<search value="True"/>
2205+
<db value="db2inst1"/>
2206+
<tbl value="user,wrong"/>
2207+
<answer value="do you want to dump tables=N"/>
2208+
</switches>
2209+
<parse>
2210+
<item value="r'Database: DB2INST1.+1 table.+USERS'"/>
2211+
</parse>
2212+
</case>
2213+
<case name="IBM DB2 boolean-based multi-threaded search enumeration - tables without given database">
2214+
<switches>
2215+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2216+
<threads value="4"/>
2217+
<tech value="B"/>
2218+
<search value="True"/>
2219+
<tbl value="users"/>
2220+
<answers value="do you want to dump=N"/>
2221+
</switches>
2222+
<parse>
2223+
<item value="r'Database: DB2INST1.+1 table.+USERS'"/>
2224+
</parse>
2225+
</case>
2226+
<case name="IBM DB2 boolean-based multi-threaded search enumeration - column without given db or table">
2227+
<switches>
2228+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2229+
<threads value="4"/>
2230+
<tech value="B"/>
2231+
<search value="True"/>
2232+
<col value="surname,foobar"/>
2233+
<answers value="do you want to dump=N"/>
2234+
</switches>
2235+
<parse>
2236+
<item value="r'Database: DB2INST1.+Table: USERS.+1 column.+SURNAME'"/>
2237+
</parse>
2238+
</case>
2239+
<case name="IBM DB2 boolean-based multi-threaded search enumeration - column given databases">
2240+
<switches>
2241+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2242+
<threads value="4"/>
2243+
<tech value="B"/>
2244+
<search value="True"/>
2245+
<db value="db2inst1,foobar"/>
2246+
<col value="surname"/>
2247+
<answers value="do you want to dump=N"/>
2248+
</switches>
2249+
<parse>
2250+
<item value="r'Database: DB2INST1.+Table: USERS.+1 column.+SURNAME'"/>
2251+
</parse>
2252+
</case>
2253+
<case name="IBM DB2 boolean-based multi-threaded search enumeration - column given tables">
2254+
<switches>
2255+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2256+
<threads value="4"/>
2257+
<tech value="B"/>
2258+
<search value="True"/>
2259+
<tbl value="users,foobar"/>
2260+
<col value="surname"/>
2261+
<answers value="do you want to dump=N"/>
2262+
</switches>
2263+
<parse>
2264+
<item value="r'Database: DB2INST1.+Table: USERS.+1 column.+SURNAME'"/>
2265+
</parse>
2266+
</case>
2267+
<case name="IBM DB2 boolean-based multi-threaded search enumeration - column given databases and table">
2268+
<switches>
2269+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2270+
<threads value="4"/>
2271+
<tech value="B"/>
2272+
<search value="True"/>
2273+
<db value="db2inst1,foobar"/>
2274+
<tbl value="users"/>
2275+
<col value="surname"/>
2276+
<answers value="do you want to dump=N"/>
2277+
</switches>
2278+
<parse>
2279+
<item value="r'Database: DB2INST1.+Table: USERS.+1 column.+SURNAME'"/>
2280+
</parse>
2281+
</case>
21882282
<case name="SQLite multi-threaded search enumeration - database">
21892283
<switches>
21902284
<url value="http://debiandev/sqlmap/sqlite/get_int.php?id=1"/>
@@ -2425,7 +2519,28 @@
24252519
<item value="r'SELECT \* FROM users ORDER BY name \[5\].+1, luther, blisset.+2, fluffy, bunny.+3, wu, ming'"/>
24262520
</parse>
24272521
</case>
2428-
<!-- TODO: add IBM DB2 test cases -->
2522+
<case name="IBM DB2 boolean-based multi-threaded custom SQL query enumeration">
2523+
<switches>
2524+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2525+
<threads value="4"/>
2526+
<tech value="B"/>
2527+
<query value="SELECT * FROM users"/>
2528+
</switches>
2529+
<parse>
2530+
<item value="r'SELECT \* FROM users.+1, luther, blisset.+nameisnull'"/>
2531+
</parse>
2532+
</case>
2533+
<case name="IBM DB2 boolean-based multi-threaded custom ordered SQL query enumeration">
2534+
<switches>
2535+
<url value="http://debiandev/sqlmap/db2/get_int.php?id=1"/>
2536+
<threads value="4"/>
2537+
<tech value="B"/>
2538+
<query value="SELECT * FROM users ORDER BY name"/>
2539+
</switches>
2540+
<parse>
2541+
<item value="r'SELECT \* FROM users ORDER BY name \[5\].+1, luther, blisset.+2, fluffy, bunny.+3, wu, ming'"/>
2542+
</parse>
2543+
</case>
24292544
<case name="SQLite boolean-based multi-threaded custom SQL query enumeration">
24302545
<switches>
24312546
<url value="http://debiandev/sqlmap/sqlite/get_int.php?id=1"/>

0 commit comments

Comments
 (0)