This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \usepackage{hyperref} | |
| \usepackage{xstring} | |
| \DeclareRobustCommand{\tid}[1]{\StrSubstitute{#1}{.}{/}[\temp]% | |
| \href{https://attack.mitre.org/techniques/\temp/}{#1}} | |
| % \tid{T1234} returns 'T1234' with a hyperlink to its MITRE ATT&CK page | |
| \DeclareRobustCommand{\tidtext}[1]{\StrSubstitute{#1}{.}{/}[\temp]% | |
| \href{https://attack.mitre.org/techniques/\temp/}{#1}: \gettid{#1}} | |
| % \tidtext{T1234} returns 'T1234: Technique Name' with T1234 containing a hyperlink to its MITRE ATT&CK page |