mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
Ctrl+C added to union dump
This commit is contained in:
parent
0616edcc44
commit
c968b438f2
|
@ -172,6 +172,7 @@ def unionUse(expression, direct=False, unescape=True, resetCounter=False, nullCh
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
for num in xrange(startLimit, stopLimit):
|
for num in xrange(startLimit, stopLimit):
|
||||||
if kb.dbms in (DBMS.MSSQL, DBMS.SYBASE):
|
if kb.dbms in (DBMS.MSSQL, DBMS.SYBASE):
|
||||||
field = expressionFieldsList[0]
|
field = expressionFieldsList[0]
|
||||||
|
@ -196,7 +197,14 @@ def unionUse(expression, direct=False, unescape=True, resetCounter=False, nullCh
|
||||||
status = '%d/%d entries (%d%s)' % (count, length, round(100.0*count/length), '%')
|
status = '%d/%d entries (%d%s)' % (count, length, round(100.0*count/length), '%')
|
||||||
dataToStdout("\r[%s] [INFO] retrieved: %s" % (time.strftime("%X"), status), True)
|
dataToStdout("\r[%s] [INFO] retrieved: %s" % (time.strftime("%X"), status), True)
|
||||||
|
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print
|
||||||
|
warnMsg = "Ctrl+C detected in dumping phase"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
finally:
|
||||||
clearConsoleLine(True)
|
clearConsoleLine(True)
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
value = unionUse(expression, direct=True, unescape=False)
|
value = unionUse(expression, direct=True, unescape=False)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user