mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
bug fix
This commit is contained in:
parent
c0f4b4632d
commit
8c45ff0d57
3 changed files with 8 additions and 3 deletions
|
|
@ -202,6 +202,7 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
|
|||
|
||||
initTechnique(PAYLOAD.TECHNIQUE.ERROR)
|
||||
|
||||
abortedFlag = False
|
||||
count = None
|
||||
start = time.time()
|
||||
startLimit = 0
|
||||
|
|
@ -374,6 +375,7 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
|
|||
runThreads(numThreads, errorThread)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
abortedFlag = True
|
||||
warnMsg = "user aborted during enumeration. sqlmap "
|
||||
warnMsg += "will display partial output"
|
||||
logger.warn(warnMsg)
|
||||
|
|
@ -382,7 +384,7 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
|
|||
outputs = threadData.shared.outputs
|
||||
kb.suppressResumeInfo = False
|
||||
|
||||
if not outputs:
|
||||
if not outputs and not abortedFlag:
|
||||
outputs = __errorFields(expression, expressionFields, expressionFieldsList)
|
||||
|
||||
if outputs and isinstance(outputs, list) and len(outputs) == 1 and isinstance(outputs[0], basestring):
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
|
||||
initTechnique(PAYLOAD.TECHNIQUE.UNION)
|
||||
|
||||
abortedFlag = False
|
||||
count = None
|
||||
origExpr = expression
|
||||
startLimit = 0
|
||||
|
|
@ -331,6 +332,8 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
clearConsoleLine(True)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
abortedFlag = True
|
||||
|
||||
warnMsg = "user aborted during enumeration. sqlmap "
|
||||
warnMsg += "will display partial output"
|
||||
logger.warn(warnMsg)
|
||||
|
|
@ -339,7 +342,7 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
value = threadData.shared.value
|
||||
kb.suppressResumeInfo = False
|
||||
|
||||
if not value:
|
||||
if not value and not abortedFlag:
|
||||
expression = re.sub("\s*ORDER BY\s+[\w,]+", "", expression, re.I) # full inband doesn't play well with ORDER BY
|
||||
value = __oneShotUnionUse(expression, unpack)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue