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):
6767 return "\n " .join (lines )
6868
6969def main ():
70+ print ("Fetching company identifiers" )
7071 comp_ids_yaml = fetch_assigned_numbers ("company_identifiers/company_identifiers.yaml" )
7172 company_identifiers = {}
7273 for c in decode_yaml (comp_ids_yaml )["company_identifiers" ]:
7374 company_identifiers [c ["value" ]] = c ["name" ]
7475
76+ print ("Fetching AD types" )
7577 ad_types_yaml = fetch_assigned_numbers ("core/ad_types.yaml" )
7678 ad_types = {}
7779 for t in decode_yaml (ad_types_yaml )["ad_types" ]:
7880 ad_types [t ["value" ]] = t ["name" ]
7981
82+ print ("Fetching service UUIDs" )
8083 service_uuids_yaml = fetch_assigned_numbers ("uuids/service_uuids.yaml" )
8184 service_uuids16 = {}
8285 for u in decode_yaml (service_uuids_yaml )["uuids" ]:
8386 service_uuids16 [u ["uuid" ]] = u ["name" ]
8487
8588 constants_file_path = os .path .join (os .path .dirname (__file__ ), "constants.py" )
89+ print ("Writing" , constants_file_path )
8690 with open (constants_file_path , 'w' ) as f :
8791 f .write ("# Auto generated by constants_generator.py\n \n " )
8892 f .write ("company_identifiers = " )
You can’t perform that action at this time.
0 commit comments