Error FIT was expected in this contact Command I gave
What Am I trying to do? I want to list all the packets from a PCAP file where syn=1 and ack=0 i.e. half open port scan. Error I get is Error FIT was expected in this contact Please help me resolve it. asked 27 Sep '15, 06:52 karnails edited 27 Sep '15, 10:23 grahamb ♦ |
One Answer:
You'll need to fix your quoting because the file path has spaces, and then your read filter is incorrect. Try this:
answered 27 Sep '15, 10:39 grahamb ♦ |
Thanks How do I output of the command above (one that you fixed) to a file, say csv?
To redirect to a file, just use normal shell redirection, e.g.
> myfile.txt
.To make a csv, look at the
-T fields -e field.name1 -e field.name2 ...
options, along with"-E separator=,"
, e.g. to display the frame number, ip.source and ip.destination use:... -T fields -e frame.number -e ip.src -e ip.dst -E "separator=," > myfile.csv
Field names can be found in Wireshark by selecting the field of interest in the packet details tree and looking at the field name in the status bar.
You can see the options on the tshark man page.