MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / scan_xss

Function scan_xss

cli/main.py:407–418  ·  view source on GitHub ↗

Scan for XSS vulnerabilities.

(
    target: str = typer.Argument(..., help="Target URL with parameters"),
    verbose: bool = typer.Option(False, "--verbose", "-v"),
)

Source from the content-addressed store, hash-verified

405 scanner = WebCrawler(max_pages=max_pages)
406 result = run_async(scanner.run(Target.from_string(target)))
407 display_result(result)
408
409
410@scan_app.command("xss")
411def scan_xss(
412 target: str = typer.Argument(..., help="Target URL with parameters"),
413 verbose: bool = typer.Option(False, "--verbose", "-v"),
414):
415 """Scan for XSS vulnerabilities."""
416 setup_logging(debug=verbose)
417 from modules.webscanner import XSSScanner
418
419 console.print(f"[bold]XSS Scan:[/bold] {target}")
420 scanner = XSSScanner()
421 result = run_async(scanner.run(Target.from_string(target)))

Callers

nothing calls this directly

Calls 6

runMethod · 0.95
setup_loggingFunction · 0.90
XSSScannerClass · 0.90
run_asyncFunction · 0.85
display_resultFunction · 0.85
from_stringMethod · 0.80

Tested by

no test coverage detected