mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 12:30:36 +03:00
covering __pivotDumpTable for keyboard and connection exceptions too
This commit is contained in:
parent
3b6f9945ae
commit
c16b74ce1a
|
@ -1184,6 +1184,7 @@ class Enumeration:
|
||||||
pivotValue = " "
|
pivotValue = " "
|
||||||
breakRetrieval = False
|
breakRetrieval = False
|
||||||
|
|
||||||
|
try:
|
||||||
for i in xrange(int(count)):
|
for i in xrange(int(count)):
|
||||||
if breakRetrieval:
|
if breakRetrieval:
|
||||||
break
|
break
|
||||||
|
@ -1219,6 +1220,17 @@ class Enumeration:
|
||||||
lengths[column] = max(lengths[column], len(value) if value else 0)
|
lengths[column] = max(lengths[column], len(value) if value else 0)
|
||||||
entries[column].append(value)
|
entries[column].append(value)
|
||||||
|
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
warnMsg = "user aborted during enumeration. sqlmap "
|
||||||
|
warnMsg += "will display partial output"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
except sqlmapConnectionException, e:
|
||||||
|
errMsg = "connection exception detected. sqlmap "
|
||||||
|
errMsg += "will display partial output"
|
||||||
|
errMsg += "'%s'" % e
|
||||||
|
logger.critical(errMsg)
|
||||||
|
|
||||||
return entries, lengths
|
return entries, lengths
|
||||||
|
|
||||||
def dumpTable(self):
|
def dumpTable(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user