This script captures network packets using TShark and saves selected fields into a CSV file. You can analyze IP addresses, protocols, and packet lengths.
TShark has options (-T, -E and -e) for printing the packet fields in a delimited text format but there's a catch. If your application batches messages then TShark will export all messages from a ...