diff options
-rw-r--r-- | techniques_table.py | 4 | ||||
-rw-r--r-- | techniques_table_doc.tex | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/techniques_table.py b/techniques_table.py index bee4027..13c9212 100644 --- a/techniques_table.py +++ b/techniques_table.py @@ -69,12 +69,14 @@ for tid in all_tids: group_count = sum([len(groups_by_techniques_by_origin[origin].get(tid, [])) for origin in all_origins]) + name_href_markup = \ + f"\\href{{https://attack.mitre.org/techniques/{tid}/}}{{{name}}}" group_precents_markup = ' & '.join( f"{round(technique_use_percent(tid, origin))}\\% groups" for origin in all_origins ) - print(f"{name} & {group_precents_markup} & {group_count} \\\\") + print(f"{name_href_markup} & {group_precents_markup} & {group_count} \\\\") print("\\end{longtable}") print("}") diff --git a/techniques_table_doc.tex b/techniques_table_doc.tex index ba7cb50..12968cb 100644 --- a/techniques_table_doc.tex +++ b/techniques_table_doc.tex @@ -7,6 +7,11 @@ \usepackage[a4paper, total={6in, 8in}, margin=1in]{geometry} \usepackage{longtable} \usepackage[table]{xcolor} +\usepackage{hyperref} +\hypersetup{ + colorlinks, + urlcolor={blue!80!black} +} \input{tlp.tex} |