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

Function osint_shodan

cli/main.py:341–352  ·  view source on GitHub ↗

Query Shodan for host information.

(
    target: str = typer.Argument(..., help="Target IP or domain"),
    verbose: bool = typer.Option(False, "--verbose", "-v"),
)

Source from the content-addressed store, hash-verified

339
340@osint_app.command("shodan")
341def osint_shodan(
342 target: str = typer.Argument(..., help="Target IP or domain"),
343 verbose: bool = typer.Option(False, "--verbose", "-v"),
344):
345 """Query Shodan for host information."""
346 setup_logging(debug=verbose)
347 from modules.osint import ShodanScanner
348
349 console.print(f"[bold]Shodan Lookup:[/bold] {target}")
350 scanner = ShodanScanner()
351 result = run_async(scanner.run(Target.from_string(target)))
352 display_result(result)
353
354
355@osint_app.command("full")

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected