Hi, please I have the following challenges using Tshark, though I have achieved it in wireshark, but it cost me too many time. So want to autorun tshark to do same. But I have been having difficulty achieving any.
Please how can I do it... in tshark? asked 22 Aug '13, 21:22 Hunted edited 24 Aug '13, 01:13 SYN-bit ♦♦ |
One Answer:
The display filter part would be the same for Wireshark and Tshark. You can set the display filter for tshark with the option "-Y" (or "-R" in versions up to 1.8):
As for the CSV output, have a look at the -T field options of tshark:
(from "tshark -h") answered 24 Aug '13, 01:18 SYN-bit ♦♦ |
thanks, its now working...
tshark -r <file> -Y "(ip.addr==10.1.1.2 or ip.addr==10.2.4.12 or ip.addr==10.5.3.6) and ("http.request.method==GET" or (tcp.flags.syn==1 && tcp.flags.ack==0 && tcp.port==443) or (tcp.flags.syn==1 && tcp.flags.ack==0 && tcp.port==22) )"
However, I have another challenge. when i attempt to autorun this code using batch file process (using windows), I discovered that it does not accept it, rather it attempts to capture the traffic on my network. I want it to dissect the specified file. Is there a way to instruct it (tshark) to dissect the given file, and not to capture another traffic..?
Thanks in anticipation of your response.
Your other challenge has been converted into a separate question; that's how a Q&A site such as this should work (Q&A sites aren't forums).