From 6ef11afddb793ad7ba5c0cbf50bc25ecacfd5e80 Mon Sep 17 00:00:00 2001 From: Wydra Mateusz <42819997+sn0w0tter@users.noreply.github.com> Date: Mon, 25 Mar 2019 22:27:43 +0100 Subject: [PATCH] variable names fixed --- scripts/attack_navigator_export.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/attack_navigator_export.py b/scripts/attack_navigator_export.py index b084c65..2e38943 100755 --- a/scripts/attack_navigator_export.py +++ b/scripts/attack_navigator_export.py @@ -69,12 +69,12 @@ def get_techniques(threats): def main(): dr_dirs = ATCconfig.get('detection_rules_directories') - dn_list = [] + dr_list = [] for path in dr_dirs: - dn_list.append(ATCutils.load_yamls(path)) - # flat dn_list - dn_list = [dn for path in dn_list for dn in path] - techniques = get_techniques(dn_list) + dr_list.append(ATCutils.load_yamls(path)) + # flat dr_list + dr_list = [dr for drs_from_path in dr_list for dr in drs_from_path] + techniques = get_techniques(dr_list) NAVIGATOR_TEMPLATE['techniques'] = techniques filename = 'atc_attack_navigator_profile.json'