Log information about the given XSS to mitmproxy
(xss_info: XSSData | None)
| 189 | |
| 190 | |
| 191 | def 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 | |
| 203 | def log_SQLi_data(sqli_info: SQLiData | None) -> None: |