(self)
| 480 | kb.dumpTable = None |
| 481 | |
| 482 | def dumpAll(self): |
| 483 | if conf.db is not None and conf.tbl is None: |
| 484 | self.dumpTable() |
| 485 | return |
| 486 | |
| 487 | if Backend.isDbms(DBMS.MYSQL) and not kb.data.has_information_schema: |
| 488 | errMsg = "information_schema not available, " |
| 489 | errMsg += "back-end DBMS is MySQL < 5.0" |
| 490 | raise SqlmapUnsupportedFeatureException(errMsg) |
| 491 | |
| 492 | infoMsg = "sqlmap will dump entries of all tables from all databases now" |
| 493 | logger.info(infoMsg) |
| 494 | |
| 495 | conf.tbl = None |
| 496 | conf.col = None |
| 497 | |
| 498 | self.getTables() |
| 499 | |
| 500 | if kb.data.cachedTables: |
| 501 | if isinstance(kb.data.cachedTables, list): |
| 502 | kb.data.cachedTables = {None: kb.data.cachedTables} |
| 503 | |
| 504 | for db, tables in kb.data.cachedTables.items(): |
| 505 | conf.db = db |
| 506 | |
| 507 | for table in tables: |
| 508 | if conf.exclude and re.search(conf.exclude, table, re.I) is not None: |
| 509 | infoMsg = "skipping table '%s'" % unsafeSQLIdentificatorNaming(table) |
| 510 | logger.info(infoMsg) |
| 511 | continue |
| 512 | |
| 513 | try: |
| 514 | conf.tbl = table |
| 515 | kb.data.cachedColumns = {} |
| 516 | kb.data.dumpedTable = {} |
| 517 | |
| 518 | self.dumpTable() |
| 519 | except SqlmapNoneDataException: |
| 520 | infoMsg = "skipping table '%s'" % unsafeSQLIdentificatorNaming(table) |
| 521 | logger.info(infoMsg) |
| 522 | |
| 523 | def dumpFoundColumn(self, dbs, foundCols, colConsider): |
| 524 | message = "do you want to dump found column(s) entries? [Y/n] " |
no test coverage detected