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

Skip to content

Commit 4428ad5

Browse files
committed
Merge branch 'master' of github.com:sqlmapproject/sqlmap
2 parents f7d826f + 0121921 commit 4428ad5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/techniques/blind/inference.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ def blindThread():
496496
dataToStdout(filterControlChars(commonValue[index - 1:]))
497497

498498
finalValue = commonValue
499-
500499
break
501500

502501
# If there is a common pattern starting with partialValue,
@@ -529,7 +528,7 @@ def blindThread():
529528
else:
530529
val = getChar(index, asciiTbl)
531530

532-
if val is None or (lastChar > 0 and index > lastChar):
531+
if val is None:
533532
finalValue = partialValue
534533
break
535534

@@ -548,6 +547,12 @@ def blindThread():
548547
finalValue = partialValue[:-INFERENCE_BLANK_BREAK]
549548
break
550549

550+
if (lastChar > 0 and index >= lastChar):
551+
finalValue = "" if length == 0 else partialValue
552+
finalValue = finalValue.rstrip() if len(finalValue) > 1 else finalValue
553+
partialValue = None
554+
break
555+
551556
except KeyboardInterrupt:
552557
abortedFlag = True
553558
finally:

0 commit comments

Comments
 (0)