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

Function scan_crawl

cli/main.py:391–403  ·  view source on GitHub ↗

Crawl website to discover pages and forms.

(
    target: str = typer.Argument(..., help="Target URL"),
    max_pages: int = typer.Option(100, "--max-pages", "-m"),
    verbose: bool = typer.Option(False, "--verbose", "-v"),
)

Source from the content-addressed store, hash-verified

389 console.print()
390
391
392# ============== Web Scanner Commands ==============
393
394@scan_app.command("crawl")
395def scan_crawl(
396 target: str = typer.Argument(..., help="Target URL"),
397 max_pages: int = typer.Option(100, "--max-pages", "-m"),
398 verbose: bool = typer.Option(False, "--verbose", "-v"),
399):
400 """Crawl website to discover pages and forms."""
401 setup_logging(debug=verbose)
402 from modules.webscanner import WebCrawler
403
404 console.print(f"[bold]Web Crawl:[/bold] {target}")
405 scanner = WebCrawler(max_pages=max_pages)
406 result = run_async(scanner.run(Target.from_string(target)))

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected