tools/
tools.rs

1use attck::Tool;
2use stix::Id;
3
4fn main() {
5    let enterprise = attck::enterprise();
6    let mimikatz_id = "tool--afc079f3-c0ea-4096-b75d-3f05338b7f60"
7        .parse::<Id>()
8        .unwrap();
9
10    // Knowing the ID and the expected return type, request the resource from the
11    // collection.
12    let mimikatz = enterprise.get::<Tool>(&mimikatz_id).unwrap();
13
14    println!(
15        "{} {}",
16        mimikatz.name(),
17        mimikatz.description().unwrap_or("<NO DESCRIPTION>")
18    );
19}