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

Function scan_sqli

cli/main.py:422–433  ·  view source on GitHub ↗

Scan for SQL injection 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

420 scanner = XSSScanner()
421 result = run_async(scanner.run(Target.from_string(target)))
422 display_result(result)
423
424
425@scan_app.command("sqli")
426def scan_sqli(
427 target: str = typer.Argument(..., help="Target URL with parameters"),
428 verbose: bool = typer.Option(False, "--verbose", "-v"),
429):
430 """Scan for SQL injection vulnerabilities."""
431 setup_logging(debug=verbose)
432 from modules.webscanner import SQLiScanner
433
434 console.print(f"[bold]SQLi Scan:[/bold] {target}")
435 scanner = SQLiScanner()
436 result = run_async(scanner.run(Target.from_string(target)))

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected