mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
minor fix (turning back the functionality of kb.suppressResumeInfo)
This commit is contained in:
parent
ea5d483c86
commit
6c4bd84d18
|
@ -163,7 +163,7 @@ def __errorFields(expression, expressionFields, expressionFieldsList, expected=N
|
||||||
if not kb.threadContinue:
|
if not kb.threadContinue:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if output is not None:
|
if output is not None and not (threadData.resumed and kb.suppressResumeInfo):
|
||||||
dataToStdout("[%s] [INFO] %s: %s\r\n" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(output)))
|
dataToStdout("[%s] [INFO] %s: %s\r\n" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(output)))
|
||||||
|
|
||||||
if isinstance(num, int):
|
if isinstance(num, int):
|
||||||
|
|
|
@ -314,7 +314,7 @@ def unionUse(expression, unpack=True, dump=False):
|
||||||
else:
|
else:
|
||||||
items = output.replace(kb.chars.start, "").replace(kb.chars.stop, "").split(kb.chars.delimiter)
|
items = output.replace(kb.chars.start, "").replace(kb.chars.stop, "").split(kb.chars.delimiter)
|
||||||
|
|
||||||
if conf.verbose == 1:
|
if conf.verbose == 1 and not (threadData.resumed and kb.suppressResumeInfo):
|
||||||
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join("\"%s\"" % _ for _ in flattenValue(arrayizeValue(items)))))
|
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join("\"%s\"" % _ for _ in flattenValue(arrayizeValue(items)))))
|
||||||
|
|
||||||
if len(status) > width:
|
if len(status) > width:
|
||||||
|
|
|
@ -129,4 +129,3 @@ class Crawler:
|
||||||
else:
|
else:
|
||||||
for url in threadData.shared.outputs:
|
for url in threadData.shared.outputs:
|
||||||
kb.targetUrls.add(( url, None, None, None ))
|
kb.targetUrls.add(( url, None, None, None ))
|
||||||
kb.suppressResumeInfo = False
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user