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] question about exporting/filtering files

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


From: Richard Bejtlich <taosecurity@xxxxxxxxx>
Date: Wed, 2 Dec 2009 14:03:57 -0500

On Wed, Dec 2, 2009 at 1:17 PM, Gerald Combs <gerald@xxxxxxxxxxxxx> wrote:

> You should be able to post-process the capture files using tshark and a
> display filter, e.g.
>
> for capfile in *.pcap ; do
>    tshark -r $capfile -R 'http.request.method == "GET"' \
>        -w get-only-$capfile
> done
>
> If you want to filter on GET requests at capture time you could use
> something like Jefferson Ogata's Big Hairy HTTP GET Filter:
>
>    tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420
>

Hi Gerald,

Any rationale for why the display filter can be used to limit -w to
only the packet of interest when used with -r , but not when doing
live capture?

Thank you,

Richard

  • Follow-Ups:
    • Re: [Wireshark-users] question about exporting/filtering files
      • From: Gerald Combs
  • References:
    • [Wireshark-users] question about exporting/filtering files
      • From: zeev mintz
    • Re: [Wireshark-users] question about exporting/filtering files
      • From: Richard Bejtlich
    • Re: [Wireshark-users] question about exporting/filtering files
      • From: Gerald Combs
  • Prev by Date: Re: [Wireshark-users] question about exporting/filtering files
  • Next by Date: Re: [Wireshark-users] question about exporting/filtering files
  • Previous by thread: Re: [Wireshark-users] question about exporting/filtering files
  • Next by thread: Re: [Wireshark-users] question about exporting/filtering files
  • Index(es):
    • Date
    • Thread

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