|
99 | 99 | from lib.core.settings import UNICODE_ENCODING |
100 | 100 | from lib.core.settings import URI_HTTP_HEADER |
101 | 101 | from lib.core.settings import UPPER_RATIO_BOUND |
| 102 | +from lib.core.settings import INFERENCE_EQUALS_CHAR |
102 | 103 | from lib.core.threads import getCurrentThreadData |
103 | 104 | from lib.request.connect import Connect as Request |
104 | 105 | from lib.request.comparison import comparison |
@@ -915,23 +916,23 @@ def _(): |
915 | 916 | if randInt3 > randInt2 > randInt1: |
916 | 917 | break |
917 | 918 |
|
918 | | - if not checkBooleanExpression("%d=%d" % (randInt1, randInt1)): |
| 919 | + if not checkBooleanExpression("%d%s%d" % (randInt1,INFERENCE_EQUALS_CHAR, randInt1)): |
919 | 920 | retVal = False |
920 | 921 | break |
921 | 922 |
|
922 | 923 | # Just in case if DBMS hasn't properly recovered from previous delayed request |
923 | 924 | if PAYLOAD.TECHNIQUE.BOOLEAN not in injection.data: |
924 | | - checkBooleanExpression("%d=%d" % (randInt1, randInt2)) |
| 925 | + checkBooleanExpression("%d%s%d" % (randInt1, INFERENCE_EQUALS_CHAR, randInt2)) |
925 | 926 |
|
926 | | - if checkBooleanExpression("%d=%d" % (randInt1, randInt3)): # this must not be evaluated to True |
| 927 | + if checkBooleanExpression("%d%s%d" % (randInt1, INFERENCE_EQUALS_CHAR, randInt3)): # this must not be evaluated to True |
927 | 928 | retVal = False |
928 | 929 | break |
929 | 930 |
|
930 | | - elif checkBooleanExpression("%d=%d" % (randInt3, randInt2)): # this must not be evaluated to True |
| 931 | + elif checkBooleanExpression("%d%s%d" % (randInt3, INFERENCE_EQUALS_CHAR, randInt2)): # this must not be evaluated to True |
931 | 932 | retVal = False |
932 | 933 | break |
933 | 934 |
|
934 | | - elif not checkBooleanExpression("%d=%d" % (randInt2, randInt2)): # this must be evaluated to True |
| 935 | + elif not checkBooleanExpression("%d%s%d" % (randInt2, INFERENCE_EQUALS_CHAR, randInt2)): # this must be evaluated to True |
935 | 936 | retVal = False |
936 | 937 | break |
937 | 938 |
|
|
0 commit comments