From 27751e9dcd38387907e6806095d46f4656254dcf Mon Sep 17 00:00:00 2001 From: Koen Van Impe Date: Tue, 12 Nov 2024 22:07:50 +0100 Subject: [PATCH] Update urlscan.py Avoid exiting after 'net::ERR_ABORTED' and 'net::ERR_FAILED'; still return the results. --- misp_modules/modules/expansion/urlscan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misp_modules/modules/expansion/urlscan.py b/misp_modules/modules/expansion/urlscan.py index c36dea6c..f6fc6dcd 100644 --- a/misp_modules/modules/expansion/urlscan.py +++ b/misp_modules/modules/expansion/urlscan.py @@ -81,6 +81,10 @@ def lookup_indicator(client, query): for request in result['data']['requests']: if request['response'].get('failed'): if request['response']['failed']['errorText']: + if request['response']['failed']['errorText'] == "net::ERR_ABORTED": + continue + elif request['response']['failed']['errorText'] == "net::ERR_FAILED": + continue log.debug('The page could not load') r.append( {'error': 'Domain could not be resolved: {}'.format(request['response']['failed']['errorText'])})