File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from 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 "
2424REVISION = getRevisionNumber ()
2525STABLE = VERSION .count ('.' ) <= 2
2626VERSION_STRING = "sqlmap/%s#%s" % (VERSION , "stable" if STABLE else "dev" )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments