MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _adjust

Function _adjust

lib/request/comparison.py:49–59  ·  view source on GitHub ↗
(condition, getRatioValue)

Source from the content-addressed store, hash-verified

47 return _
48
49def _adjust(condition, getRatioValue):
50 if not any((conf.string, conf.notString, conf.regexp, conf.code)):
51 # Negative logic approach is used in raw page comparison scheme as that what is "different" than original
52 # PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
53 # applied as that what is by user considered as True is that what is returned by the comparison mechanism
54 # itself
55 retVal = not condition if kb.negativeLogic and condition is not None and not getRatioValue else condition
56 else:
57 retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)
58
59 return retVal
60
61def _comparison(page, headers, code, getRatioValue, pageLength):
62 threadData = getCurrentThreadData()

Callers 1

comparisonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…