From c14d05adefa94498b6e37fc1656481717a1a74b9 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Wed, 20 Jun 2018 12:32:54 +0200 Subject: [PATCH] test patries expansion --- misp_modules/modules/expansion/onyphe_full.py | 49 +++++++++++-------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/misp_modules/modules/expansion/onyphe_full.py b/misp_modules/modules/expansion/onyphe_full.py index 7047a30..220fb50 100644 --- a/misp_modules/modules/expansion/onyphe_full.py +++ b/misp_modules/modules/expansion/onyphe_full.py @@ -62,32 +62,39 @@ def handle_ip(api, ip, misperrors): r, status_ok = expand_syscan(api, ip, misperrors) + # if status_ok: + # result_filtered['results'].append(r) + # else: + # misperrors['error'] = "Error syscan result" + + r,status_ok = expand_pastries(api,misperrors,ip=ip) + if status_ok: result_filtered['results'].append(r) else: - misperrors['error'] = "Error syscan result" + misperrors['error'] = 'Error pastries result' return misperrors - r, status_ok = expand_datascan(api, misperrors, ip=ip) - - if status_ok: - result_filtered['results'].append(r) - else: - return r - - r, status_ok = expand_forward(api, ip, misperrors) - - if status_ok: - result_filtered['results'].append(r) - else: - return r - - r, status_ok = expand_reverse(api, ip, misperrors) - - if status_ok: - result_filtered['results'].append(r) - else: - return r + # r, status_ok = expand_datascan(api, misperrors, ip=ip) + # + # if status_ok: + # result_filtered['results'].append(r) + # else: + # return r + # + # r, status_ok = expand_forward(api, ip, misperrors) + # + # if status_ok: + # result_filtered['results'].append(r) + # else: + # return r + # + # r, status_ok = expand_reverse(api, ip, misperrors) + # + # if status_ok: + # result_filtered['results'].append(r) + # else: + # return r return result_filtered