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

Search for a string that span over two data packets

0

Was searching for a string that span over two TCP data packets, it doesn't find it. alt text

My Wireshark is 1.10.6. Thanks.

asked 28 Dec '15, 07:06

pktUser1001's gravatar image

pktUser1001
201495054
accept rate: 12%

Do you have an example trace for us?

(28 Dec '15, 12:45) Christian_R

Thanks @christian_r, here is an example pcap: https://www.dropbox.com/s/5gbpbea0rzxr3c2/http1.pcap?dl=0

(28 Dec '15, 13:08) pktUser1001

2 Answers:

0

So in this case you have to enable reassembling of the TCP segments AND the reassemling of the HTTP bodies and headers. You can activate it by right clicking the HTTP header in the packet detail and activate the reassembly features as it is shown in the first screenshot.

After that you can use the search dialog shown at the question. Than it should show you the string in the reassembled byte view. As you can see in the second screenshot.

Screenshot 1: alt text


Screenshot 2: alt text

answered 28 Dec '15, 16:00

Christian_R's gravatar image

Christian_R
1.8k2625
accept rate: 16%

Thanks @Christian_R, the key is to select the radio button "Packet details". I used "Packet bytes" which didn't work in this case. Wonder if there are reference on exactly what is "Packet details", does it mean the reassembled TCP data?

(28 Dec '15, 18:38) pktUser1001

0

Do you know tcp ip address? If yes then right click on any packet in same sequence -> Follow TCP Stream. In opened new window you can find a string if it exist in particular dump.

answered 28 Dec '15, 08:31

Vladimir%20R%C3%B5kovanov's gravatar image

Vladimir Rõk...
63
accept rate: 0%

Thanks @vladimir-rokovanov. Unfortunately I don't know IP address. Even in the case of knowing the session, finding the occurrence of follow TCP stream will not tell me what packets have these string. Any ideas?

(28 Dec '15, 09:24) pktUser1001

You can try search one part of the string and then follow this tcp stream.

(28 Dec '15, 10:34) Vladimir Rõk...

That could be a workaround, albeit tedious when the string is long. Thanks for the idea. Hope there is a clean method.

(28 Dec '15, 11:56) pktUser1001