Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6c2f985

Browse files
committed
Potential patch for #1773
1 parent d496d99 commit 6c2f985

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from lib.core.revision import getRevisionNumber
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.0.3.5"
23+
VERSION = "1.0.3.6"
2424
REVISION = getRevisionNumber()
2525
STABLE = VERSION.count('.') <= 2
2626
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

plugins/generic/entries.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,13 @@ def dumpTable(self, foundData=None):
169169
if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL):
170170
table = "%s.%s" % (conf.db, tbl)
171171

172-
retVal = pivotDumpTable(table, colList, blind=False)
172+
try:
173+
retVal = pivotDumpTable(table, colList, blind=False)
174+
except KeyboardInterrupt:
175+
retVal = None
176+
clearConsoleLine()
177+
warnMsg = "Ctrl+C detected in dumping phase"
178+
logger.warn(warnMsg)
173179

174180
if retVal:
175181
entries, _ = retVal
@@ -269,7 +275,13 @@ def dumpTable(self, foundData=None):
269275
elif Backend.isDbms(DBMS.MAXDB):
270276
table = "%s.%s" % (conf.db, tbl)
271277

272-
retVal = pivotDumpTable(table, colList, count, blind=True)
278+
try:
279+
retVal = pivotDumpTable(table, colList, count, blind=True)
280+
except KeyboardInterrupt:
281+
retVal = None
282+
clearConsoleLine()
283+
warnMsg = "Ctrl+C detected in dumping phase"
284+
logger.warn(warnMsg)
273285

274286
if retVal:
275287
entries, lengths = retVal

0 commit comments

Comments
 (0)