mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-26 16:50:35 +03: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:
parent
eb11f5b2e0
commit
8a48baf789
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user