From 67b0dc0b7e17a2ca3066de4eae844ccc7637caeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 8 Jan 2024 13:28:56 +0100 Subject: [PATCH] fix: [MISP] Avoid exception when a hostname starts with "file" --- lookyloo/modules/misp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookyloo/modules/misp.py b/lookyloo/modules/misp.py index 091222b..279e534 100644 --- a/lookyloo/modules/misp.py +++ b/lookyloo/modules/misp.py @@ -73,7 +73,7 @@ class MISPs(Mapping, AbstractModule): directly to a MISP instance and it will create an event.''' public_domain = get_config('generic', 'public_domain') event = MISPEvent() - if cache.url.startswith('file'): + if cache.url.startswith('file://'): filename = cache.url.rsplit('/', 1)[-1] event.info = f'Lookyloo Capture ({filename})' # Create file object as initial