From 8a48baf789feb6e66662952bf6165fe5aab55b09 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 4 Jan 2011 13:23:59 +0000 Subject: [PATCH] update for a "problem" reported by nightman@email.de where he lost all of large dumped table because in the middle of dumping 401 was raised --- plugins/generic/enumeration.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index a56e00368..1c57472d2 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -37,6 +37,7 @@ from lib.core.data import queries from lib.core.enums import DBMS from lib.core.enums import EXPECTED from lib.core.enums import PAYLOAD +from lib.core.exception import sqlmapConnectionException from lib.core.exception import sqlmapMissingMandatoryOptionException from lib.core.exception import sqlmapNoneDataException from lib.core.exception import sqlmapUnsupportedFeatureException @@ -1351,6 +1352,11 @@ class Enumeration: warnMsg = "Ctrl+C detected in dumping phase" logger.warn(warnMsg) + except sqlmapConnectionException, e: + errMsg = "connection exception detected in dumping phase: " + errMsg += "'%s'" % e + logger.critical(errMsg) + for column, columnEntries in entries.items(): if lengths[column] < len(column): length = len(column)