variable names fixed

This commit is contained in:
Wydra Mateusz 2019-03-25 22:27:43 +01:00
parent ca15225e6b
commit 6ef11afddb

View File

@ -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'