Skip to content

Commit d400dc2

Browse files
committed
Patch for an Issue sqlmapproject#907
1 parent 5e9c73f commit d400dc2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

plugins/generic/entries.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,17 @@ def dumpTable(self, foundData=None):
337337
kb.data.dumpedTable["__infos__"] = {"count": entriesCount,
338338
"table": safeSQLIdentificatorNaming(tbl, True),
339339
"db": safeSQLIdentificatorNaming(conf.db)}
340-
attackDumpedTable()
340+
try:
341+
attackDumpedTable()
342+
except Exception, ex:
343+
errMsg = "an error occurred while attacking "
344+
errMsg += "table dump ('%s')" % ex
345+
logger.critical(errMsg)
341346
conf.dumper.dbTableValues(kb.data.dumpedTable)
342347

343-
except SqlmapConnectionException, e:
344-
errMsg = "connection exception detected in dumping phase: "
345-
errMsg += "'%s'" % e
348+
except SqlmapConnectionException, ex:
349+
errMsg = "connection exception detected in dumping phase "
350+
errMsg += "('%s')" % ex
346351
logger.critical(errMsg)
347352

348353
finally:

0 commit comments

Comments
 (0)