Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-users: Re: [Wireshark-users] Display filter

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Wed, 02 May 2007 11:56:18 -0700

Irakli Natshvlishvili wrote:
> Question:
> 
> Using display filters is there a way to find if a particular string
> occurs more then once in a packet?
> 
> For example, if there is an UDP packet which has payload "this is one
> 1234 two one test", then filtering via UDP contains "one" will display
> this UDP packet.
> 
> But I want to filter ALL packets, where this particular string occurs
> more then once.
> 
> Any way do do it?

If you have PCRE support compiled in, you can use something like

    udp matches "one.*one"

That translates to "the string 'one' followed by zero or more characters
followed by the string 'one'."  The "matches" operator supports
Perl-compatible regular expressions, which are described at
http://perldoc.perl.org/perlre.html .

You can check for PCRE support via "Help->About Wireshark" or by using
the "-v" command-line flag.  You can also type in the filter above and
see if the display filter entry turns green.

  • Follow-Ups:
    • Re: [Wireshark-users] Display filter
      • From: Irakli Natshvlishvili
  • References:
    • [Wireshark-users] Display filter
      • From: Irakli Natshvlishvili
  • Prev by Date: [Wireshark-users] Display filter
  • Next by Date: Re: [Wireshark-users] Wireshark
  • Previous by thread: [Wireshark-users] Display filter
  • Next by thread: Re: [Wireshark-users] Display filter
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation