Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7349f3a

Browse files
committed
Closes #197
1 parent bb9401b commit 7349f3a

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

lib/techniques/blind/inference.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,19 @@ def downloadThread():
290290
val = getChar(curidx)
291291

292292
if val is None:
293-
if not kb.assumeBlank:
293+
if not kb.assumeEmpty:
294294
iolock.acquire()
295+
295296
warnMsg = "failed to get character at index %d (expected %d total)." % (curidx, length)
296297
logger.warn(warnMsg)
297-
message = "assume blank character? [Y/n/a]"
298-
getOutput = readInput(message, default="Y")
298+
299+
message = "assume empty character? [Y/n/a]"
300+
choice = readInput(message, default="Y")
299301
iolock.release()
300-
if getOutput in ("a", "A"):
301-
kb.assumeBlank = True
302-
elif not getOutput or getOutput in ("y", "Y"):
302+
303+
if choice in ("a", "A"):
304+
kb.assumeEmpty = True
305+
elif not choice or choice in ("y", "Y"):
303306
pass # do nothing
304307
else:
305308
raise sqlmapValueException

0 commit comments

Comments
 (0)