MCPcopy
hub / github.com/mitmproxy/mitmproxy / log_SQLi_data

Function log_SQLi_data

examples/contrib/xss_scanner.py:203–212  ·  view source on GitHub ↗

Log information about the given SQLi to mitmproxy

(sqli_info: SQLiData | None)

Source from the content-addressed store, hash-verified

201
202
203def log_SQLi_data(sqli_info: SQLiData | None) -> None:
204 """Log information about the given SQLi to mitmproxy"""
205 if not sqli_info:
206 return
207 logging.error("===== SQLi Found =====")
208 logging.error("SQLi URL: %s" % sqli_info.url)
209 logging.error("Injection Point: %s" % sqli_info.injection_point)
210 logging.error("Regex used: %s" % sqli_info.regex)
211 logging.error("Suspected DBMS: %s" % sqli_info.dbms)
212 return
213
214
215def get_SQLi_data(

Callers 1

responseFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…