mirror of https://github.com/MISP/misp-modules
error type
parent
9427c76603
commit
3a4294391f
|
@ -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'],
|
||||||
|
|
Loading…
Reference in New Issue