mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-12 03:33:44 +03:00
Closes #197
This commit is contained in:
parent
bb9401ba52
commit
7349f3a70f
|
@ -290,16 +290,19 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
val = getChar(curidx)
|
val = getChar(curidx)
|
||||||
|
|
||||||
if val is None:
|
if val is None:
|
||||||
if not kb.assumeBlank:
|
if not kb.assumeEmpty:
|
||||||
iolock.acquire()
|
iolock.acquire()
|
||||||
|
|
||||||
warnMsg = "failed to get character at index %d (expected %d total)." % (curidx, length)
|
warnMsg = "failed to get character at index %d (expected %d total)." % (curidx, length)
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
message = "assume blank character? [Y/n/a]"
|
|
||||||
getOutput = readInput(message, default="Y")
|
message = "assume empty character? [Y/n/a]"
|
||||||
|
choice = readInput(message, default="Y")
|
||||||
iolock.release()
|
iolock.release()
|
||||||
if getOutput in ("a", "A"):
|
|
||||||
kb.assumeBlank = True
|
if choice in ("a", "A"):
|
||||||
elif not getOutput or getOutput in ("y", "Y"):
|
kb.assumeEmpty = True
|
||||||
|
elif not choice or choice in ("y", "Y"):
|
||||||
pass # do nothing
|
pass # do nothing
|
||||||
else:
|
else:
|
||||||
raise sqlmapValueException
|
raise sqlmapValueException
|
||||||
|
|
Loading…
Reference in New Issue
Block a user