MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / log_XSS_data

Function log_XSS_data

examples/contrib/xss_scanner.py:191–200  ·  view source on GitHub ↗

Log information about the given XSS to mitmproxy

(xss_info: XSSData | None)

Source from the content-addressed store, hash-verified

189
190
191def log_XSS_data(xss_info: XSSData | None) -> None:
192 """Log information about the given XSS to mitmproxy"""
193 # If it is None, then there is no info to log
194 if not xss_info:
195 return
196 logging.error("===== XSS Found ====")
197 logging.error("XSS URL: %s" % xss_info.url)
198 logging.error("Injection Point: %s" % xss_info.injection_point)
199 logging.error("Suggested Exploit: %s" % xss_info.exploit)
200 logging.error("Line: %s" % xss_info.line)
201
202
203def log_SQLi_data(sqli_info: SQLiData | None) -> None:

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…