i used the following filter in wireshark to find the packets containing these bytes :
frame contains "\x03\x00\x0e\xa8"
but when i see the result of this filter, it displays more than 1k packets which don't even contain these bytes. For example, it even displays the following ethernet packet :
00219ba0610678e7d1c625f40800450000282a0340008006cd88c0a87801d43af65f059e00503bac54cf9f17722a5010ffff04e50000
Nowhere these bytes are contained in this packet. Similarly there are several other packets which are displayed while actually there are only two packets containing these bytes which are displayed as well. Can anyone let me know what is the issue here ? any help will be highly appreicated. thanks
A problem you'll likely run into is that Wireshark may not display any packets after starting a capture using your existing 802.11 client card, especially if running in Windows. The issue is that many of the 802.11 cards don't support promiscuous mode.
The “frame contains” filter will let you pick out only those packets that contain a sequence of any ASCII or Hex value that you specify. The syntax is simple.
To only display packets containing a particular protocol, type the protocol name in the display filter toolbar of the Wireshark window and press enter to apply the filter.
Check the length of "IP->Total length" = ( ip header length + Tcp Header length+ application) . So the ip header says 519 ,So subtract 20 Bytes of ip header and 20 bytes of tcp header . The HTTP message length = 519 -20- 20 = 479 bytes.
A quick test indicates that:
"\x03\x00\x0e\xa8"
is treated as a search for a string with the \x00
terminating the search string. That is: the string actually being searched for is "\x03
".
The following will work:
frame contains 03:00:0e:a8
See: Display Filters, Wireshark User's Guide, and ask.wireshark.org
Although not explicitly stated, "..." specifies a NULL-terminated search string in the usual C string constant fashion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With