From 3a4294391fa83024779b546a94c4a07555e78177 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Wed, 20 Jun 2018 14:48:18 +0200 Subject: [PATCH] error type --- misp_modules/modules/expansion/onyphe_full.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misp_modules/modules/expansion/onyphe_full.py b/misp_modules/modules/expansion/onyphe_full.py index f6c334e..9b9c06c 100644 --- a/misp_modules/modules/expansion/onyphe_full.py +++ b/misp_modules/modules/expansion/onyphe_full.py @@ -112,10 +112,10 @@ def expand_syscan(api, ip, misperror): status_ok = True for elem in results['results']: asn_list.append(elem['asn']) - os_list = elem['os'] + os_target = elem['os'] geoloc.append(elem['location']) orgs.append(elem['organization']) - if os_list != 'Unknown': + if os_target != 'Unknown': os_list.append(elem['os']) r.append({'types': ['target-machine'], @@ -131,7 +131,7 @@ def expand_syscan(api, ip, misperror): 'categories': ['Targeting data']}) r.append({'types': ['AS'], 'values': list(set(asn_list)), - 'categories': ['Network activity']}) + 'categories': ['Network activity']}) return r, status_ok