From 80e71f582c901bd866cc321f2cbe3f6bcfdd0935 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Wed, 11 Jul 2018 11:58:42 +0200 Subject: [PATCH] debug ipv4 or ipv6 --- misp_modules/modules/expansion/dnstrails.py | 26 +++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/misp_modules/modules/expansion/dnstrails.py b/misp_modules/modules/expansion/dnstrails.py index b97997a..9e3a80f 100644 --- a/misp_modules/modules/expansion/dnstrails.py +++ b/misp_modules/modules/expansion/dnstrails.py @@ -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