()
| 168 | return data |
| 169 | |
| 170 | def _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 | |
| 197 | def _randomFillBlankFields(value): |
| 198 | retVal = value |
no test coverage detected
searching dependent graphs…