Pull TCP port numbers from Wireshark files


#1

Hello,
I have about 50 wireshark capture files and I need to find out what TCP ports are being used. I could go thru each file and do a Statistics>Conversations>TCP>Copy>Paste to text doc but this is a little tedious. Does anyone know of a easier way to accomplish this?

Thanks


#2

Hello,

tshark.exe -r <your_file>.pcap -T fields -e tcp.srcport -e tcp.dstport

Olivier


#3

Thanks, I’ll give it a try.