(
ip: str,
timeout: int,
json_output: bool = False,
)
| 522 | |
| 523 | |
| 524 | async def _handle_abuseipdb( |
| 525 | ip: str, |
| 526 | timeout: int, |
| 527 | json_output: bool = False, |
| 528 | ) -> None: |
| 529 | print(f"[*] AbuseIPDB lookup: {ip}", file=sys.stderr) |
| 530 | result = await run_abuseipdb_osint(ip=ip, timeout_seconds=timeout) |
| 531 | if json_output: |
| 532 | _emit_json(format_tool_result("search_abuseipdb", ip, result)) |
| 533 | else: |
| 534 | _print_result(result) |
| 535 | |
| 536 | |
| 537 | async def _handle_github( |
no test coverage detected