Hi, I installed wireshark in a remote server.But I am not able to see the wireshark folder inside /home/username/.config/ or in /etc/wireshark.conf . I have access to remote server only through ssh. Actually I need to add some columns in preference file of wireshark.But I can't see preference file in any of these locations. Right now I am doing the following method.But in the following code I need to add ip identification field(ip.id) also. Is there any method I can do it without adding a column in preference file.? tshark -r capture.pcap -Y "udp or tcp and ip.dst == 192.22.167.00/24" -o "gui.column.format:\"Time\",\"%Yt\",\"Source address\",\"%s\",\"Protocol\",\"%p\",\"Destination address\",\"%d\",\"SrcPort\",\"%S\",\"DstPort\",\"%D\"" > text Server is using Ubuntu Zesty Zapus(17.04) and wireshark version is 2.2.4. Thanks in advance Subin asked 25 Jan '17, 10:05 subinjp |
One Answer:
Typically it's located in answered 25 Jan '17, 10:17 cmaynard ♦♦ edited 25 Jan '17, 10:55 |
Thank you very much for your response.It worked. Could you give a reference or a general pattern of adding custom columns in tshark.??
Unfortunately, I don't think custom column formats are documented very well, at least not that I can find. Basically, the format is as I described though:
"Arbitrary Name","%Cus:fieldname"
... with optional occurrence and resolved/unresolved flag. Use an occurrence value of -1 for the last occurrence, 0 for all occurrences and any other positive integer n for the nth occurrence. I'm not entirely sure, but resolved (R)/unresolved(U) may depend upon whether name resolution is enabled or not for those fields where it's applicable.Thank you.:)