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

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%


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.

permanent link

answered 28 Jun '17, 10:01

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×184

question asked: 28 Jun '17, 08:48

question was seen: 4,246 times

last updated: 28 Jun '17, 10:01

p​o​w​e​r​e​d by O​S​Q​A