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

Function _showInjections

lib/controller/controller.py:170–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 return data
169
170def _showInjections():
171 if conf.wizard and kb.wizardMode:
172 kb.wizardMode = False
173
174 if kb.testQueryCount > 0:
175 header = "sqlmap identified the following injection point(s) with "
176 header += "a total of %d HTTP(s) requests" % kb.testQueryCount
177 else:
178 header = "sqlmap resumed the following injection point(s) from stored session"
179
180 if conf.api:
181 conf.dumper.string("", {"url": conf.url, "query": conf.parameters.get(PLACE.GET), "data": conf.parameters.get(PLACE.POST)}, content_type=CONTENT_TYPE.TARGET)
182 conf.dumper.string("", kb.injections, content_type=CONTENT_TYPE.TECHNIQUES)
183 else:
184 data = "".join(set(_formatInjection(_) for _ in kb.injections)).rstrip("\n")
185 conf.dumper.string(header, data)
186
187 if conf.tamper:
188 warnMsg = "changes made by tampering scripts are not "
189 warnMsg += "included in shown payload content(s)"
190 logger.warning(warnMsg)
191
192 if conf.hpp:
193 warnMsg = "changes made by HTTP parameter pollution are not "
194 warnMsg += "included in shown payload content(s)"
195 logger.warning(warnMsg)
196
197def _randomFillBlankFields(value):
198 retVal = value

Callers 1

startFunction · 0.85

Calls 3

_formatInjectionFunction · 0.85
stringMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…