Skip to content

Commit

Permalink
Update website_discovery.py (#3921)
Browse files Browse the repository at this point in the history
Co-authored-by: ammar92 <[email protected]>
Co-authored-by: Jeroen Dekkers <[email protected]>
  • Loading branch information
3 people authored Dec 4, 2024
1 parent 1ef538f commit 86bb96f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion octopoes/bits/website_discovery/website_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def run(
ip_address: IPAddressV4, additional_oois: list[IPService | ResolvedHostname], config: dict[str, Any]
) -> Iterator[OOI]:
def is_service_http(ip_service: IPService) -> bool:
return "http" in ip_service.service.tokenized.name.lower().strip()
service_name = ip_service.service.tokenized.name.lower().strip()
return service_name in ("http", "https")

hostnames = [resolved.hostname for resolved in additional_oois if isinstance(resolved, ResolvedHostname)]
services = [ip_service for ip_service in additional_oois if isinstance(ip_service, IPService)]
Expand Down

0 comments on commit 86bb96f

Please sign in to comment.