(
query: str,
timeout: int,
json_output: bool = False,
)
| 483 | |
| 484 | |
| 485 | async 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 | |
| 498 | async def _handle_virustotal( |
no test coverage detected