I stumbled across this link and found it potentially advantageous if I can learn how to use it: How to Export Packet Summary to Text File My problem is that the filter here does not work. I am simply trying to grab the lines that are ip only, just as I would if I were in Wireshark filtering "ip" of an existing pcap file. asked 23 Nov '15, 09:08 Midimistro |
2 Answers:
I finally figured it out. There was nothing wrong with my file except a missing preference setting. It was apparently the preferences for Wireshark that needed to be set in order for it to properly filter the type of .pcap files I am using. answered 23 Nov '15, 13:07 Midimistro edited 23 Nov '15, 13:08 |
Then please try this:
There is no need to redefine the column formar, unless you are looking for something very special. If you want to write a new pcap file, please try this
BTW: the correct format for gui.column.format would be:
Regards answered 23 Nov '15, 09:31 Kurt Knochner ♦ edited 23 Nov '15, 10:30 |
First, I am trying to grab only the info column of each line that is ip only. Second, the pcap file is a file that already exists (captured by a different program and converted to pcap), not as a live capture, like you showed here. Third, the output file desired is a .txt file.
"C:\Program Files\Wireshark\tshark.exe" -r "C:\temp\filename.pcap" -o "gui.column.format:\"Info\",\"%i\"" > "C:\temp\filename.txt" works, BUT it prints out every line, which is not what I want.
Lastly, I would think {-Y "ip"} or {-2 -r <filename.pcap> -R "ip"} would work, but as I said before, both of them turn out blanks. If I try -O on the other hand, it generates a file even bigger than the pcap and that is not open-able.
Any ideas?
-ni
was just a typo. I corrected it to-nr
O.K. can you please post an example of what you want?
It works on my system, so I assume it will work on yours as well.
Please run the following command. It should show at least some output if there is IP traffic in the pcap file.
Regards Kurt