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

Function _goInferenceFields

lib/request/inject.py:135–161  ·  view source on GitHub ↗
(expression, expressionFields, expressionFieldsList, payload, num=None, charsetType=None, firstChar=None, lastChar=None, dump=False)

Source from the content-addressed store, hash-verified

133 return value
134
135def _goInferenceFields(expression, expressionFields, expressionFieldsList, payload, num=None, charsetType=None, firstChar=None, lastChar=None, dump=False):
136 outputs = []
137 origExpr = None
138
139 for field in expressionFieldsList:
140 output = None
141
142 if field.startswith("ROWNUM "):
143 continue
144
145 if isinstance(num, int):
146 origExpr = expression
147 expression = agent.limitQuery(num, expression, field, expressionFieldsList[0])
148
149 if "ROWNUM" in expressionFieldsList:
150 expressionReplaced = expression
151 else:
152 expressionReplaced = expression.replace(expressionFields, field, 1)
153
154 output = _goInference(payload, expressionReplaced, charsetType, firstChar, lastChar, dump, field)
155
156 if isinstance(num, int):
157 expression = origExpr
158
159 outputs.append(output)
160
161 return outputs
162
163def _goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, charsetType=None, firstChar=None, lastChar=None, dump=False):
164 """

Callers 1

_goInferenceProxyFunction · 0.85

Calls 4

_goInferenceFunction · 0.85
limitQueryMethod · 0.80
replaceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…