mirror of https://github.com/MISP/misp-modules
change loop
parent
e9747a3379
commit
26950ea7de
|
@ -277,15 +277,16 @@ def expand_history_ipv4(api, domain):
|
||||||
if 'records' in results:
|
if 'records' in results:
|
||||||
for record in results['records']:
|
for record in results['records']:
|
||||||
if 'values' in record:
|
if 'values' in record:
|
||||||
r.append(
|
for item in record['values']:
|
||||||
{'type': ['domain|ip'],
|
r.append(
|
||||||
'values': ['%s|%s' % (domain, record['ip'])],
|
{'type': ['domain|ip'],
|
||||||
'categories': ['Newtwork activity'],
|
'values': ['%s|%s' % (domain, item['ip'])],
|
||||||
'comment': 'last seen: %s first seen: %s' %
|
'categories': ['Newtwork activity'],
|
||||||
(record['last_seen'],
|
'comment': 'last seen: %s first seen: %s' %
|
||||||
record['first_seen'])
|
(record['last_seen'],
|
||||||
}
|
record['first_seen'])
|
||||||
)
|
}
|
||||||
|
)
|
||||||
|
|
||||||
except APIError as e:
|
except APIError as e:
|
||||||
misperrors['error'] = e
|
misperrors['error'] = e
|
||||||
|
|
Loading…
Reference in New Issue