This commit is contained in:
overcuriousity
2025-09-18 21:04:29 +02:00
parent 12f834bb65
commit 9d9afa6a08
2 changed files with 31 additions and 24 deletions

View File

@@ -107,6 +107,12 @@ class ShodanProvider(BaseProvider):
except (json.JSONDecodeError, ValueError, KeyError):
return "stale"
def query_domain(self, domain: str) -> ProviderResult:
"""
Shodan does not support domain queries. This method returns an empty result.
"""
return ProviderResult()
def query_ip(self, ip: str) -> ProviderResult:
"""
Query Shodan for information about an IP address (IPv4 or IPv6), with caching of processed data.