I wonder how getting UUID name works at Wireshark. I am working with following pcap file: https://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=get&target=dcerpc_witness.pcapng I debug the code, and I think the responsible file is file:
Responsible Line is line 349:
I check Frame 223: Tower Pointer -> Floor 1 UUID: WITNESS -> UUID: WITNESS I don't understand how Line 349 found name of the UUID as "WITNESS" For example, let me change this number "ccd8c074-d0e5-4a40-92b4-d074faa6ba28" from "WITNESS" to "SOMETHINGANOTHER" (It is completely an idea, I will not change anything about this UUID) How can I do this? asked 25 May '16, 03:47 BirolCapa |
One Answer:
That function attempts to look the guid up in the guid name cache built from the capture, and if that fails, on Windows only, attempts to locate the interface name in the registry. answered 25 May '16, 04:30 grahamb ♦ |
Thank you for the answer Graham.
How is "guid name cache" built?
Let's look at the file "epan\dissectors\packet-dcerpc-witness.c". As far as I understand, "dcerpc_init_uuid(...)" function adds the name of the UUID to guid name cache by using "proto_dcerpc_witness" parameter. Am I right?
I think so, it's the call to
guids_add_uuid
which is a macro that callsguids_add_guid
.