mirror of https://github.com/CIRCL/lookyloo
fix: Pass IPs to whois instead of v4/v6...
parent
7b142277ed
commit
264d94cd2d
|
@ -32,7 +32,12 @@ class UniversalWhois(AbstractModule):
|
||||||
def query_whois_hostnode(self, hostnode: HostNode) -> None:
|
def query_whois_hostnode(self, hostnode: HostNode) -> None:
|
||||||
if hasattr(hostnode, 'resolved_ips'):
|
if hasattr(hostnode, 'resolved_ips'):
|
||||||
ip: str
|
ip: str
|
||||||
for ip in hostnode.resolved_ips:
|
if 'v4' in hostnode.resolved_ips and 'v6' in hostnode.resolved_ips:
|
||||||
|
_all_ips = set(hostnode.resolved_ips['v4']) | set(hostnode.resolved_ips['v6'])
|
||||||
|
else:
|
||||||
|
# old format
|
||||||
|
_all_ips = hostnode.resolved_ips
|
||||||
|
for ip in _all_ips:
|
||||||
self.whois(ip)
|
self.whois(ip)
|
||||||
if hasattr(hostnode, 'cnames'):
|
if hasattr(hostnode, 'cnames'):
|
||||||
cname: str
|
cname: str
|
||||||
|
|
Loading…
Reference in New Issue