mirror of https://github.com/MISP/misp-modules
debug ipv4 or ipv6
parent
386d38c88f
commit
80e71f582c
|
@ -99,25 +99,27 @@ def handle_domain(api, domain, misperrors):
|
|||
# return misperrors
|
||||
#
|
||||
# time.sleep(1)
|
||||
# r, status_ok = expand_history_ipv4_ipv6(api, domain)
|
||||
r, status_ok = expand_history_ipv4_ipv6(api, domain)
|
||||
#
|
||||
# if status_ok:
|
||||
# result_filtered['results'].extend(r)
|
||||
# else:
|
||||
# misperrors['error'] = misperrors['error'] + ' Error history ipv4'
|
||||
# return misperrors
|
||||
#
|
||||
# time.sleep(1)
|
||||
|
||||
r, status_ok = expand_history_dns(api, domain)
|
||||
|
||||
if status_ok:
|
||||
print(r)
|
||||
result_filtered['results'].extend(r)
|
||||
else:
|
||||
misperrors['error'] = misperrors[
|
||||
'error'] + ' Error in expand History DNS'
|
||||
misperrors['error'] = misperrors['error'] + ' Error history ipv4'
|
||||
return misperrors
|
||||
|
||||
# time.sleep(1)
|
||||
|
||||
# r, status_ok = expand_history_dns(api, domain)
|
||||
#
|
||||
# if status_ok:
|
||||
# print(r)
|
||||
# result_filtered['results'].extend(r)
|
||||
# else:
|
||||
# misperrors['error'] = misperrors[
|
||||
# 'error'] + ' Error in expand History DNS'
|
||||
# return misperrors
|
||||
return result_filtered
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue