diff --git a/bbot/modules/internal/cloudcheck.py b/bbot/modules/internal/cloudcheck.py index 285d48188..42c51ec03 100644 --- a/bbot/modules/internal/cloudcheck.py +++ b/bbot/modules/internal/cloudcheck.py @@ -51,6 +51,7 @@ async def handle_event(self, event, **kwargs): event.add_tag(f"{provider_type}-cname") found = set() + str_hosts_to_check = [str(host) for host in hosts_to_check] # look for cloud assets in hosts, http responses # loop through each provider for provider in self.helpers.cloud.providers.values(): @@ -68,7 +69,7 @@ async def handle_event(self, event, **kwargs): if event.type == "HTTP_RESPONSE": matches = await self.helpers.re.findall(sig, event.data.get("body", "")) elif event.type.startswith("DNS_NAME"): - for host in hosts_to_check: + for host in str_hosts_to_check: match = sig.match(host) if match: matches.append(match.groups())