In Windows 7 I'm using tshark on the commandprompt to extract some information from pcaps and write them to csv files. In the csv file I want to write what is in the filter below, containing ""test""". In the pcap itself and the 'x509af.subject' field are multiple lines of x509sat.uTF8String values (in the ssl.handshake.certificate). It looks like the output always shows the first value of the different uTF8Strings, but in this case I want to show the value of the 5th uTF8String. Just to be sure that the correct value has been printed to the csv file. I want "test" to show in the csv file, instead of a location which is currently showing. Is there a way to tell tshark which uTF8String value can be printed to the csv file? Apparently the -Y filter does work, but the wrong field gets printed to the csv.
asked 02 Feb '17, 08:14 r00t070 edited 02 Feb '17, 08:36 grahamb ♦ |
One Answer:
There is a -E option to select the occurrence of a field, but it only gives the options of first, last or all:
answered 02 Feb '17, 08:38 grahamb ♦ |