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