Scan for XSS vulnerabilities.
(
target: str = typer.Argument(..., help="Target URL with parameters"),
verbose: bool = typer.Option(False, "--verbose", "-v"),
)
| 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") |
| 411 | def 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))) |
nothing calls this directly
no test coverage detected