mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor fix (writing to HashDB on any interrupt)
This commit is contained in:
parent
577caac4de
commit
b130a9e14e
|
@ -517,6 +517,12 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
finally:
|
finally:
|
||||||
setFormatterPrependFlag(False)
|
setFormatterPrependFlag(False)
|
||||||
|
|
||||||
|
if finalValue is not None:
|
||||||
|
finalValue = decodeHexValue(finalValue) if conf.hexConvert else finalValue
|
||||||
|
hashDBWrite(expression, finalValue)
|
||||||
|
else:
|
||||||
|
hashDBWrite(expression, "%s%s" % (PARTIAL_VALUE_MARKER, partialValue))
|
||||||
|
|
||||||
if conf.verbose in (1, 2) or showEta:
|
if conf.verbose in (1, 2) or showEta:
|
||||||
dataToStdout("\n")
|
dataToStdout("\n")
|
||||||
|
|
||||||
|
@ -524,12 +530,6 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
infoMsg = "retrieved: %s" % filterControlChars(finalValue)
|
infoMsg = "retrieved: %s" % filterControlChars(finalValue)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
if finalValue is not None:
|
|
||||||
finalValue = decodeHexValue(finalValue) if conf.hexConvert else finalValue
|
|
||||||
hashDBWrite(expression, finalValue)
|
|
||||||
else:
|
|
||||||
hashDBWrite(expression, "%s%s" % (PARTIAL_VALUE_MARKER, partialValue))
|
|
||||||
|
|
||||||
if kb.threadException:
|
if kb.threadException:
|
||||||
raise sqlmapThreadException, "something unexpected happened inside the threads"
|
raise sqlmapThreadException, "something unexpected happened inside the threads"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user