def _api_modifier(self, event): """Adds flags field to CLSID and IID instances.""" clsid = guid_name(event["arguments"].get("clsid")) if clsid: event["flags"]["clsid"] = clsid iid = event["arguments"].get("iid") if isinstance(iid, (tuple, list)): event["flags"]["iid"] = [guid_name(x) for x in iid] elif guid_name(iid): event["flags"]["iid"] = guid_name(iid)
def test_guid(): assert utils.guid_name( "{0002e005-0000-0000-c000-000000000046}") == "InprocServer32" assert utils.guid_name("{13709620-c279-11ce-a49e-444553540000}") == "Shell"
def test_guid(): assert utils.guid_name("{0002e005-0000-0000-c000-000000000046}") == "InprocServer32" assert utils.guid_name("{13709620-c279-11ce-a49e-444553540000}") == "Shell"