mirror of https://github.com/MISP/misp-modules
add status !
parent
09c52788b8
commit
f3962d2d05
|
@ -70,7 +70,7 @@ def handle_domain(api, domain, misperrors):
|
||||||
if status_ok:
|
if status_ok:
|
||||||
result_filtered['results'].extend(r)
|
result_filtered['results'].extend(r)
|
||||||
else:
|
else:
|
||||||
misperrors['error'] = 'Error pastries result'
|
misperrors['error'] = 'Error dns result'
|
||||||
return misperrors
|
return misperrors
|
||||||
|
|
||||||
return result_filtered
|
return result_filtered
|
||||||
|
@ -91,6 +91,7 @@ def expand_domain_info(api, misperror,domain):
|
||||||
results = api.domain(domain)
|
results = api.domain(domain)
|
||||||
|
|
||||||
if results:
|
if results:
|
||||||
|
status_ok = True
|
||||||
if 'current_dns' in results:
|
if 'current_dns' in results:
|
||||||
if 'values' in results['current_dns']['ns']:
|
if 'values' in results['current_dns']['ns']:
|
||||||
ns_servers = [ns_entry['nameserver'] for ns_entry in
|
ns_servers = [ns_entry['nameserver'] for ns_entry in
|
||||||
|
|
Loading…
Reference in New Issue