mirror of https://github.com/MISP/misp-modules
set status after requests
parent
4166475f9e
commit
a9b7a10c41
|
@ -167,9 +167,10 @@ def expand_datascan(api, misperror,**kwargs):
|
||||||
query = kwargs.get('domain')
|
query = kwargs.get('domain')
|
||||||
|
|
||||||
results = api.datascan(query)
|
results = api.datascan(query)
|
||||||
print(results)
|
|
||||||
|
|
||||||
if results['status'] == 'ok':
|
if results['status'] == 'ok':
|
||||||
|
status_ok = False
|
||||||
for elem in results['results']:
|
for elem in results['results']:
|
||||||
asn_list.append(elem['asn'])
|
asn_list.append(elem['asn'])
|
||||||
geoloc.append(elem['location'])
|
geoloc.append(elem['location'])
|
||||||
|
|
Loading…
Reference in New Issue