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

Function _goBooleanProxy

lib/request/inject.py:312–344  ·  view source on GitHub ↗

Retrieve the output of a boolean based SQL query

(expression)

Source from the content-addressed store, hash-verified

310 return ", ".join(output or "" for output in outputs) if not isNoneValue(outputs) else None
311
312def _goBooleanProxy(expression):
313 """
314 Retrieve the output of a boolean based SQL query
315 """
316
317 initTechnique(getTechnique())
318
319 if conf.dnsDomain:
320 query = agent.prefixQuery(getTechniqueData().vector)
321 query = agent.suffixQuery(query)
322 payload = agent.payload(newValue=query)
323 output = _goDns(payload, expression)
324
325 if output is not None:
326 return output
327
328 vector = getTechniqueData().vector
329 vector = vector.replace(INFERENCE_MARKER, expression)
330 query = agent.prefixQuery(vector)
331 query = agent.suffixQuery(query)
332 payload = agent.payload(newValue=query)
333
334 timeBasedCompare = getTechnique() in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED)
335
336 output = hashDBRetrieve(expression, checkConf=True)
337
338 if output is None:
339 output = Request.queryPage(payload, timeBasedCompare=timeBasedCompare, raise404=False)
340
341 if output is not None:
342 hashDBWrite(expression, output)
343
344 return output
345
346def _goUnion(expression, unpack=True, dump=False):
347 """

Callers 1

getValueFunction · 0.85

Calls 11

initTechniqueFunction · 0.90
getTechniqueFunction · 0.90
getTechniqueDataFunction · 0.90
hashDBRetrieveFunction · 0.90
hashDBWriteFunction · 0.90
_goDnsFunction · 0.85
prefixQueryMethod · 0.80
suffixQueryMethod · 0.80
payloadMethod · 0.80
queryPageMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…