Skip to content

Commit

Permalink
Update urlscan.py
Browse files Browse the repository at this point in the history
Avoid exiting after 'net::ERR_ABORTED' and 'net::ERR_FAILED'; still return the results.
  • Loading branch information
cudeso authored Nov 12, 2024
1 parent e17aad3 commit 27751e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions misp_modules/modules/expansion/urlscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])})
Expand Down

0 comments on commit 27751e9

Please sign in to comment.