mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
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
This commit is contained in:
@@ -37,6 +37,7 @@ from lib.core.data import queries
|
|||||||
from lib.core.enums import DBMS
|
from lib.core.enums import DBMS
|
||||||
from lib.core.enums import EXPECTED
|
from lib.core.enums import EXPECTED
|
||||||
from lib.core.enums import PAYLOAD
|
from lib.core.enums import PAYLOAD
|
||||||
|
from lib.core.exception import sqlmapConnectionException
|
||||||
from lib.core.exception import sqlmapMissingMandatoryOptionException
|
from lib.core.exception import sqlmapMissingMandatoryOptionException
|
||||||
from lib.core.exception import sqlmapNoneDataException
|
from lib.core.exception import sqlmapNoneDataException
|
||||||
from lib.core.exception import sqlmapUnsupportedFeatureException
|
from lib.core.exception import sqlmapUnsupportedFeatureException
|
||||||
@@ -1351,6 +1352,11 @@ class Enumeration:
|
|||||||
warnMsg = "Ctrl+C detected in dumping phase"
|
warnMsg = "Ctrl+C detected in dumping phase"
|
||||||
logger.warn(warnMsg)
|
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():
|
for column, columnEntries in entries.items():
|
||||||
if lengths[column] < len(column):
|
if lengths[column] < len(column):
|
||||||
length = len(column)
|
length = len(column)
|
||||||
|
|||||||
Reference in New Issue
Block a user