mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-16 03:02:20 +03:00
Another patch related to the #1773
This commit is contained in:
parent
6c2f9859be
commit
5b0d5970cc
|
@ -1821,6 +1821,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
|
||||||
kb.dnsTest = None
|
kb.dnsTest = None
|
||||||
kb.docRoot = None
|
kb.docRoot = None
|
||||||
kb.dumpTable = None
|
kb.dumpTable = None
|
||||||
|
kb.dumpKeyboardInterrupt = False
|
||||||
kb.dynamicMarkings = []
|
kb.dynamicMarkings = []
|
||||||
kb.dynamicParameter = False
|
kb.dynamicParameter = False
|
||||||
kb.endDetection = False
|
kb.endDetection = False
|
||||||
|
|
|
@ -20,7 +20,7 @@ from lib.core.enums import OS
|
||||||
from lib.core.revision import getRevisionNumber
|
from lib.core.revision import getRevisionNumber
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.0.3.6"
|
VERSION = "1.0.3.7"
|
||||||
REVISION = getRevisionNumber()
|
REVISION = getRevisionNumber()
|
||||||
STABLE = VERSION.count('.') <= 2
|
STABLE = VERSION.count('.') <= 2
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
|
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
|
||||||
|
|
|
@ -173,6 +173,7 @@ class Entries:
|
||||||
retVal = pivotDumpTable(table, colList, blind=False)
|
retVal = pivotDumpTable(table, colList, blind=False)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
retVal = None
|
retVal = None
|
||||||
|
kb.dumpKeyboardInterrupt = True
|
||||||
clearConsoleLine()
|
clearConsoleLine()
|
||||||
warnMsg = "Ctrl+C detected in dumping phase"
|
warnMsg = "Ctrl+C detected in dumping phase"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
@ -279,6 +280,7 @@ class Entries:
|
||||||
retVal = pivotDumpTable(table, colList, count, blind=True)
|
retVal = pivotDumpTable(table, colList, count, blind=True)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
retVal = None
|
retVal = None
|
||||||
|
kb.dumpKeyboardInterrupt = True
|
||||||
clearConsoleLine()
|
clearConsoleLine()
|
||||||
warnMsg = "Ctrl+C detected in dumping phase"
|
warnMsg = "Ctrl+C detected in dumping phase"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
@ -332,6 +334,7 @@ class Entries:
|
||||||
entries[column].append(value)
|
entries[column].append(value)
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
kb.dumpKeyboardInterrupt = True
|
||||||
clearConsoleLine()
|
clearConsoleLine()
|
||||||
warnMsg = "Ctrl+C detected in dumping phase"
|
warnMsg = "Ctrl+C detected in dumping phase"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
|
@ -192,6 +192,9 @@ def main():
|
||||||
logger.error(errMsg)
|
logger.error(errMsg)
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
elif "valueStack.pop" in excMsg and kb.get("dumpKeyboardInterrupt"):
|
||||||
|
raise SystemExit
|
||||||
|
|
||||||
for match in re.finditer(r'File "(.+?)", line', excMsg):
|
for match in re.finditer(r'File "(.+?)", line', excMsg):
|
||||||
file_ = match.group(1)
|
file_ = match.group(1)
|
||||||
file_ = os.path.relpath(file_, os.path.dirname(__file__))
|
file_ = os.path.relpath(file_, os.path.dirname(__file__))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user