Dear all,
when I run tshark on a particular trace file (file1.pcap) where let's say frame #1 is important to me and I want to search for the exact same frame inside another trace file (file2.pcap), here is what I try to do:
- tshark -r file1.pcap -Y frame.number==1 -Tfields -e data this gives me the payload of the frame without its headers as hex stream (same as if I right-click inside the hexpane)
- For the other file where the exact same packet is also captured, I try to filter for that hex steam e.g. using tshark -r file2.pcap -Y data=="<paste from="" step1="">" or tshark -r file2.pcap -Y data contains "<subset from="" that="" string="">"
which both don't work.
However, if I use -Y "data contains 80:00:00" where 80:00:00 is just a random example it works.
So my question is how to match the -Tfields -e data output for "data" filtering without adding colons between every byte :)