This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Filter based on Content

0

I have a windows service that uses winsock communicating to another windows service that uses winsock. We are talking over TCP/IP using JSON.

I am trying to prove that my service is behaving properly and that the service it communicates to is not sending the expected data.

I set up wireshark to capture on the Ethernet card I am using on my local machine and filter on ip.addr == <remote ip="" address=""> and I can see the traffic.

I am expecting messages that contain "Message One" and I can see them, thousands of them. While I am receiving all those, I expect a few messages that contain "Message Two"

How do I set up the filter to prove that I am not receiving the "Message Two" messages?

I Googled a little bit and someone said use data-text-lines contains "Message Two", but that doesn't work. I can verify it doesn't work by looking at the messages that contain "Message One" and then filtering data-text-line contains "Message One" and they all disappear when they shouldn't. I have a feeling that is for http only.

What do I use for a filter?

asked 28 Jun '17, 08:48

Fleshbits's gravatar image

Fleshbits
11113
accept rate: 0%


One Answer:

0

Just use a display filter frame contains "Message Two". This filter doesn't care about how the packet is dissected and searches in the raw bytes.

answered 28 Jun '17, 10:01

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%