Ask Your Question

Landi's profile - activity

2019-05-04 20:07:40 +0000 received badge  Popular Question (source)
2018-10-29 15:32:47 +0000 received badge  Supporter (source)
2018-10-29 15:32:47 +0000 marked best answer filter for "data" to match packets

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:

  1. 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).
  2. 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 :)

2018-10-29 15:32:47 +0000 received badge  Scholar (source)
2018-10-29 15:32:42 +0000 commented answer filter for "data" to match packets

That's exactly what I figured - and for sure that works at least with -Tfields -e data.data and then searching for data=

2018-10-29 15:31:22 +0000 commented answer filter for "data" to match packets

That's exactly what I figured - and for sure that works at least with -Tfields -e data.data and then searching for data=

2018-10-28 17:41:24 +0000 asked a question filter for "data" to match packets

filter for "data" to match packets Dear all, when I run tshark on a particular trace file (file1.pcap) where let's say