Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
you also might want to take a look at using ethereal (GUI) and/or tethereal (CLI) as replacements for tcpdump. It's packet selection mechanism is able to analyze HTTP, so you can do your selection of traffic there, for instance this selects all GET and HEAD requests from a live capture on one of my ethernet interface:
tethereal -i eth1 -R'http.request.method == "GET" || http.request.meth +od == "HEAD"'
outputs:
7.518730 66.27.72.141 -> 192.172.226.123 HTTP GET / HTTP/1.1 7.616699 66.27.72.141 -> 192.172.226.123 HTTP GET /HOME/images/nav_1 +_1_HOME.gif HTTP/1.1 7.638719 66.27.72.141 -> 192.172.226.123 HTTP GET /HOME/images/nav_2 +_1_HOME_overview.gif HTTP/1.1 7.641536 66.27.72.141 -> 192.172.226.123 HTTP GET /images/nav_1_2_GL +OBAL_globe.gif HTTP/1.1 7.670158 66.27.72.141 -> 192.172.226.123 HTTP GET /images/nav_2_2_GL +OBAL_globe.gif HTTP/1.1 7.694446 66.27.72.141 -> 192.172.226.123 HTTP GET /HOME/images/nav_3 +_1_HOME_overview.gif HTTP/1.1 7.714087 66.27.72.141 -> 192.172.226.123 HTTP GET /HOME/images/nav_3 +_2_HOME_globe.gif HTTP/1.1
replace -i <iface> with -r <file> to read from file.

In reply to Re: converting tcpdump output by eXile
in thread converting tcpdump output by RnC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-03-28 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found