How can I run wireshark from the command line to open a file, and output a file containing only the udp.length of every DNS packet? asked 26 Oct '10, 16:29 skypemesm |
One Answer:
You might want to take a look at rawshark or at tshark's "-T fields" option. answered 26 Oct '10, 16:47 Gerald Combs ♦♦ |
tshark -R "dns" -r abc.pcap -T fields -e udp.length
and if you want to do the same for live traffic, try...
tshark -T fields -e udp.length -f "port 53"
throw a > udplength.txt to export the info to a text file