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

Function _

lib/techniques/union/use.py:155–159  ·  view source on GitHub ↗
(regex)

Source from the content-addressed store, hash-verified

153 # Parse the returned page to get the exact UNION-based
154 # SQL injection output
155 def _(regex):
156 return firstNotNone(
157 extractRegexResult(regex, removeReflectiveValues(page, payload), re.DOTALL | re.IGNORECASE),
158 extractRegexResult(regex, removeReflectiveValues(listToStrValue((_ for _ in headers.headers if not _.startswith(HTTP_HEADER.URI)) if headers else None), payload, True), re.DOTALL | re.IGNORECASE)
159 )
160
161 # Automatically patching last char trimming cases
162 if kb.chars.stop not in (page or "") and kb.chars.stop[:-1] in (page or ""):

Callers 1

_oneShotUnionUseFunction · 0.70

Calls 4

firstNotNoneFunction · 0.90
extractRegexResultFunction · 0.90
removeReflectiveValuesFunction · 0.90
listToStrValueFunction · 0.90

Tested by

no test coverage detected