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

Function comparison

lib/request/comparison.py:37–47  ·  view source on GitHub ↗
(page, headers, code=None, getRatioValue=False, pageLength=None)

Source from the content-addressed store, hash-verified

35from thirdparty import six
36
37def comparison(page, headers, code=None, getRatioValue=False, pageLength=None):
38 if not isinstance(page, (six.text_type, six.binary_type, type(None))):
39 logger.critical("got page of type %s; repr(page)[:200]=%s" % (type(page), repr(page)[:200]))
40
41 try:
42 page = b"".join(page)
43 except:
44 page = six.text_type(page)
45
46 _ = _adjust(_comparison(page, headers, code, getRatioValue, pageLength), getRatioValue)
47 return _
48
49def _adjust(condition, getRatioValue):
50 if not any((conf.string, conf.notString, conf.regexp, conf.code)):

Callers 4

checkSqlInjectionFunction · 0.90
queryPageMethod · 0.90
_orderByTestFunction · 0.90
_findUnionCharCountFunction · 0.90

Calls 2

_adjustFunction · 0.85
_comparisonFunction · 0.85

Tested by 2

_orderByTestFunction · 0.72
_findUnionCharCountFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…