MCPcopy Index your code
hub / github.com/OpenOSINT/OpenOSINT / _handle_shodan

Function _handle_shodan

openosint/cli.py:485–495  ·  view source on GitHub ↗
(
    query: str,
    timeout: int,
    json_output: bool = False,
)

Source from the content-addressed store, hash-verified

483
484
485async def _handle_shodan(
486 query: str,
487 timeout: int,
488 json_output: bool = False,
489) -> None:
490 print(f"[*] Shodan lookup: {query}", file=sys.stderr)
491 result = await run_shodan_osint(query=query, timeout_seconds=timeout)
492 if json_output:
493 _emit_json(format_tool_result("search_shodan", query, result))
494 else:
495 _print_result(result)
496
497
498async def _handle_virustotal(

Callers 1

_async_mainFunction · 0.85

Calls 4

run_shodan_osintFunction · 0.90
format_tool_resultFunction · 0.90
_emit_jsonFunction · 0.85
_print_resultFunction · 0.70

Tested by

no test coverage detected