File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
python_cli/sniffle/advdata Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -67,22 +67,26 @@ def pretty_print_dict(d, key_digits=4):
67
67
return "\n " .join (lines )
68
68
69
69
def main ():
70
+ print ("Fetching company identifiers" )
70
71
comp_ids_yaml = fetch_assigned_numbers ("company_identifiers/company_identifiers.yaml" )
71
72
company_identifiers = {}
72
73
for c in decode_yaml (comp_ids_yaml )["company_identifiers" ]:
73
74
company_identifiers [c ["value" ]] = c ["name" ]
74
75
76
+ print ("Fetching AD types" )
75
77
ad_types_yaml = fetch_assigned_numbers ("core/ad_types.yaml" )
76
78
ad_types = {}
77
79
for t in decode_yaml (ad_types_yaml )["ad_types" ]:
78
80
ad_types [t ["value" ]] = t ["name" ]
79
81
82
+ print ("Fetching service UUIDs" )
80
83
service_uuids_yaml = fetch_assigned_numbers ("uuids/service_uuids.yaml" )
81
84
service_uuids16 = {}
82
85
for u in decode_yaml (service_uuids_yaml )["uuids" ]:
83
86
service_uuids16 [u ["uuid" ]] = u ["name" ]
84
87
85
88
constants_file_path = os .path .join (os .path .dirname (__file__ ), "constants.py" )
89
+ print ("Writing" , constants_file_path )
86
90
with open (constants_file_path , 'w' ) as f :
87
91
f .write ("# Auto generated by constants_generator.py\n \n " )
88
92
f .write ("company_identifiers = " )
You can’t perform that action at this time.
0 commit comments