From 6b4a3210dcaf6a4f871698d6750b4db0f19d6dd7 Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Fri, 13 Oct 2023 10:35:01 -0400 Subject: [PATCH] small bugfix for asset_inventory --- bbot/modules/output/asset_inventory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbot/modules/output/asset_inventory.py b/bbot/modules/output/asset_inventory.py index d249ae1cd..56e94aaa2 100644 --- a/bbot/modules/output/asset_inventory.py +++ b/bbot/modules/output/asset_inventory.py @@ -92,7 +92,7 @@ def sort_key(asset): ports = getattr(asset, "ports", set()) ports = [str(p) for p in sorted([int(p) for p in asset.ports])] ips = sorted([str(i) for i in getattr(asset, "ip_addresses", [])]) - host = getattr(asset, "host", "") + host = self.helpers.make_ip_type(getattr(asset, "host", "")) if host and isinstance(host, str): _, domain = self.helpers.split_domain(host) if domain: @@ -197,7 +197,7 @@ def __init__(self, host): def absorb_csv_row(self, row): # host - host = row.get("Host", "").strip() + host = make_ip_type(row.get("Host", "").strip()) if host and not is_ip(host): self.host = host # ips