error type

pull/197/head
Sebdraven 2018-06-20 14:48:18 +02:00
parent 9427c76603
commit 3a4294391f
1 changed files with 3 additions and 3 deletions

View File

@ -112,10 +112,10 @@ def expand_syscan(api, ip, misperror):
status_ok = True status_ok = True
for elem in results['results']: for elem in results['results']:
asn_list.append(elem['asn']) asn_list.append(elem['asn'])
os_list = elem['os'] os_target = elem['os']
geoloc.append(elem['location']) geoloc.append(elem['location'])
orgs.append(elem['organization']) orgs.append(elem['organization'])
if os_list != 'Unknown': if os_target != 'Unknown':
os_list.append(elem['os']) os_list.append(elem['os'])
r.append({'types': ['target-machine'], r.append({'types': ['target-machine'],
@ -131,7 +131,7 @@ def expand_syscan(api, ip, misperror):
'categories': ['Targeting data']}) 'categories': ['Targeting data']})
r.append({'types': ['AS'], 'values': list(set(asn_list)), r.append({'types': ['AS'], 'values': list(set(asn_list)),
'categories': ['Network activity']}) 'categories': ['Network activity']})
return r, status_ok return r, status_ok