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

Skip to content

Commit 31daefc

Browse files
committed
Minor fix (skipping one uneccesary request in single-threaded --first/--last mode)
1 parent 2f69a94 commit 31daefc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/techniques/blind/inference.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def blindThread():
529529
else:
530530
val = getChar(index, asciiTbl)
531531

532-
if val is None or (lastChar > 0 and index > lastChar):
532+
if val is None:
533533
finalValue = partialValue
534534
break
535535

@@ -548,6 +548,10 @@ def blindThread():
548548
finalValue = partialValue[:-INFERENCE_BLANK_BREAK]
549549
break
550550

551+
if (lastChar > 0 and index >= lastChar):
552+
finalValue = partialValue
553+
break
554+
551555
except KeyboardInterrupt:
552556
abortedFlag = True
553557
finally:

0 commit comments

Comments
 (0)