|
1242 | 1242 | <item value="r'SELECT \* FROM users ORDER BY name \[5\].+1, luther, blissett.+2, fluffy, bunny.+3, wu, ming'"/>
|
1243 | 1243 | </parse>
|
1244 | 1244 | </case>
|
1245 |
| - |
1246 |
| - |
1247 | 1245 | <case name="PostgreSQL boolean-based multi-threaded custom SQL query enumeration">
|
1248 | 1246 | <switches>
|
1249 | 1247 | <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/>
|
1250 | 1248 | <threads value="4"/>
|
1251 | 1249 | <tech value="B"/>
|
1252 |
| - <query value="SELECT * FROM users LIMIT 0, 2"/> |
| 1250 | + <query value="SELECT * FROM users OFFSET 0 LIMIT 2"/> |
1253 | 1251 | </switches>
|
1254 | 1252 | <parse>
|
1255 |
| - <item value="r'SELECT \* FROM users LIMIT 0, 2 \[2\].+1, luther, blissett.+2, fluffy, bunny'"/> |
| 1253 | + <item value="r'SELECT \* FROM users OFFSET 0 LIMIT 2 \[2\].+1, luther, blissett.+2, fluffy, bunny'"/> |
1256 | 1254 | </parse>
|
1257 | 1255 | </case>
|
1258 | 1256 | <case name="PostgreSQL error-based multi-threaded custom SQL query enumeration">
|
1259 | 1257 | <switches>
|
1260 | 1258 | <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/>
|
1261 | 1259 | <threads value="4"/>
|
1262 | 1260 | <tech value="E"/>
|
1263 |
| - <query value="SELECT * FROM users LIMIT 0, 2"/> |
| 1261 | + <query value="SELECT * FROM users OFFSET 0 LIMIT 2"/> |
1264 | 1262 | </switches>
|
1265 | 1263 | <parse>
|
1266 |
| - <item value="r'SELECT \* FROM users LIMIT 0, 2 \[2\].+1, luther, blissett.+2, fluffy, bunny'"/> |
| 1264 | + <item value="r'SELECT \* FROM users OFFSET 0 LIMIT 2 \[2\].+1, luther, blissett.+2, fluffy, bunny'"/> |
1267 | 1265 | </parse>
|
1268 | 1266 | </case>
|
1269 | 1267 | <case name="PostgreSQL UNION query multi-threaded custom SQL query enumeration">
|
1270 | 1268 | <switches>
|
1271 | 1269 | <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/>
|
1272 | 1270 | <threads value="4"/>
|
1273 | 1271 | <tech value="U"/>
|
1274 |
| - <query value="SELECT * FROM users LIMIT 0, 2"/> |
| 1272 | + <query value="SELECT * FROM users OFFSET 0 LIMIT 2"/> |
1275 | 1273 | </switches>
|
1276 | 1274 | <parse>
|
1277 |
| - <item value="r'SELECT \* FROM users LIMIT 0, 2 \[2\].+1, luther, blissett.+2, fluffy, bunny'"/> |
| 1275 | + <item value="r'SELECT \* FROM users OFFSET 0 LIMIT 2 \[2\].+1, luther, blissett.+2, fluffy, bunny'"/> |
1278 | 1276 | </parse>
|
1279 | 1277 | </case>
|
1280 | 1278 | <case name="PostgreSQL boolean-based multi-threaded custom ordered SQL query enumeration">
|
|
1360 | 1358 | <item value="the remote file /tmp/passwd-${random} is larger than the local file /etc/passwd" console_output="True"/>
|
1361 | 1359 | </parse>
|
1362 | 1360 | </case>
|
| 1361 | + <case name="PostgreSQL boolean-based multi-threaded file read"> |
| 1362 | + <switches> |
| 1363 | + <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/> |
| 1364 | + <threads value="4"/> |
| 1365 | + <tech value="BS"/> |
| 1366 | + <timeSec value="2"/> |
| 1367 | + <rFile value="/etc/hosts,/tmp/invalidfile"/> |
| 1368 | + <answers value="do you want to overwrite it=Y"/> |
| 1369 | + </switches> |
| 1370 | + <parse> |
| 1371 | + <item value="r'files saved to.+files/_etc_hosts \(same file\)'"/> |
| 1372 | + </parse> |
| 1373 | + </case> |
| 1374 | + <case name="PostgreSQL error-based multi-threaded file read"> |
| 1375 | + <switches> |
| 1376 | + <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/> |
| 1377 | + <threads value="4"/> |
| 1378 | + <tech value="ES"/> |
| 1379 | + <rFile value="/etc/hosts,/tmp/invalidfile"/> |
| 1380 | + <answers value="do you want to overwrite it=Y"/> |
| 1381 | + </switches> |
| 1382 | + <parse> |
| 1383 | + <item value="r'files saved to.+files/_etc_hosts \(same file\)'"/> |
| 1384 | + </parse> |
| 1385 | + </case> |
| 1386 | + <case name="PostgreSQL UNION query multi-threaded file read"> |
| 1387 | + <switches> |
| 1388 | + <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/> |
| 1389 | + <threads value="4"/> |
| 1390 | + <tech value="US"/> |
| 1391 | + <rFile value="/etc/hosts,/tmp/invalidfile"/> |
| 1392 | + <answers value="do you want to overwrite it=Y"/> |
| 1393 | + </switches> |
| 1394 | + <parse> |
| 1395 | + <item value="r'files saved to.+files/_etc_hosts \(same file\)'"/> |
| 1396 | + </parse> |
| 1397 | + </case> |
| 1398 | + <case name="PostgreSQL multi-threaded file write"> |
| 1399 | + <switches> |
| 1400 | + <verbose value="2"/> |
| 1401 | + <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/> |
| 1402 | + <threads value="4"/> |
| 1403 | + <wFile value="/etc/passwd"/> |
| 1404 | + <dFile value="/tmp/passwd-${random}"/> |
| 1405 | + <answers value="do you want to overwrite it=Y"/> |
| 1406 | + </switches> |
| 1407 | + <parse> |
| 1408 | + <item value="the local file /etc/passwd and the remote file /tmp/passwd-${random} have the same size" console_output="True"/> |
| 1409 | + </parse> |
| 1410 | + </case> |
1363 | 1411 | <!-- End of file system access switches -->
|
1364 | 1412 |
|
1365 | 1413 | <!-- Operating system access switches -->
|
|
1374 | 1422 | <item value="command standard output: 'uid="/>
|
1375 | 1423 | </parse>
|
1376 | 1424 | </case>
|
1377 |
| - <!-- TODO: integration with Metasploit cannot be called yet from live testing |
1378 | 1425 | <case name="MySQL shell via Metasploit integration - command execution">
|
1379 | 1426 | <switches>
|
1380 | 1427 | <url value="http://debiandev/sqlmap/mysql/get_int.php?id=1"/>
|
1381 |
| - <tech value="B"/> |
| 1428 | + <tech value="BU"/> |
1382 | 1429 | <osPwn value="True"/>
|
1383 | 1430 | <msfPath value="/usr/local/bin/"/>
|
1384 |
| - <answers value="please provide any additional web server=/var/www/test"/> |
| 1431 | + <answers value="please provide any additional web server=/var/www/test,do you want to overwrite it=Y"/> |
| 1432 | + </switches> |
| 1433 | + <parse> |
| 1434 | + <item value="r'Sending stage.+Linux.+uid=.+www-data'" console_output="True"/> |
| 1435 | + </parse> |
| 1436 | + </case> |
| 1437 | + <case name="PostgreSQL User-Defined Function (UDF) injection - command execution"> |
| 1438 | + <switches> |
| 1439 | + <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/> |
| 1440 | + <tech value="US"/> |
| 1441 | + <osCmd value="id"/> |
| 1442 | + <answers value="do you want to overwrite it=Y"/> |
| 1443 | + </switches> |
| 1444 | + <parse> |
| 1445 | + <item value="command standard output: 'uid="/> |
| 1446 | + </parse> |
| 1447 | + </case> |
| 1448 | + <case name="PostgreSQL shell via Metasploit integration - command execution"> |
| 1449 | + <switches> |
| 1450 | + <url value="http://debiandev/sqlmap/pgsql/get_int.php?id=1"/> |
| 1451 | + <tech value="US"/> |
| 1452 | + <osPwn value="True"/> |
| 1453 | + <msfPath value="/usr/local/bin/"/> |
| 1454 | + <answers value="do you want to overwrite it=Y"/> |
1385 | 1455 | </switches>
|
1386 | 1456 | <parse>
|
1387 |
| - <item value="r'Sending stage.+Command shell session.+Linux.+uid='"/> |
| 1457 | + <item value="r'Sending stage.+Linux.+uid=.+postgres'" console_output="True"/> |
1388 | 1458 | </parse>
|
1389 | 1459 | </case>
|
1390 |
| - --> |
1391 | 1460 | <!-- End of operating system access switches -->
|
1392 | 1461 |
|
1393 | 1462 | <!-- Technique switches and corner cases -->
|
|
0 commit comments