-
Notifications
You must be signed in to change notification settings - Fork 89
/
httpry.1
90 lines (88 loc) · 3.81 KB
/
httpry.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.TH HTTPRY 1
.SH NAME
httpry \- HTTP logging and information retrieval tool
.SH SYNOPSIS
.B httpry [ -dFpq ] [ -b file ] [ -f format ] [ -i device ] [ -m methods ] [ -n count ] [ -o file ] [ -P file ] [ -r file ] [ -S bytes ] [ -u user ] [ 'expression' ]
.br
.B httpry -s [ -l threshold ] [ -t seconds ]
.br
.B httpry -h
.br
.SH DESCRIPTION
.PP
.I httpry
is a tool designed for displaying and logging HTTP traffic. It is not designed
to perform analysis itself, but instead to capture, parse and log the traffic
for later analysis. It can be run in real-time displaying the live traffic on
the wire, or as a daemon process that logs to an output file.
.SH OPTIONS
.IP "-b \fIfile\fP"
Write all processed HTTP packets to a binary pcap dump file. Useful for
further analysis of logged data.
.IP "-d"
Run the program as a daemon process. All program status output will be sent
to syslog. A pid file is created for the process in /var/run/httpry.pid by
default. Requires an output file specified with -o.
.IP "-f \fIformat\fP"
Provide a comma-delimited string specifying the parsed HTTP data to output.
See the doc/format-string file for further information regarding available
options and syntax.
.IP "-F"
Disable all output buffering. This may be helpful when piping httpry output
into another program.
.IP "-h"
Display a brief description of these options.
.IP "-i \fIdevice\fP"
Specify an ethernet interface for the program to listen on. If not specified,
the program will poll the system for a list of interfaces and select the
first one found.
.IP "-l \fIthreshold\fP"
Specify a requests per second rate threshold value when running in rate
statistics mode (-s). Only hosts with a rps value greater than or equal to
this number will be displayed. Defaults to 1.
.IP "-m \fImethods\fP"
Provide a comma-delimited string that specifies the request methods to parse.
The program defaults to parsing all of the standard RFC2616 method strings if
this option is not set. See the doc/method-string file for more information.
.IP "-n \fIcount\fP"
Parse this number of HTTP packets and then exit. Defaults to 0, which means
loop forever.
.IP "-o \fIfile\fP"
Specify an output file for writing parsed packet data.
.IP "-p"
Do not put the NIC in promiscuous mode on startup. Note that the NIC could
already be in that mode for another reason.
.IP "-P \fIfile\fP"
Specify a path and filename for creating the PID file in daemon mode.
.IP "-q"
Suppress non-critical output (startup banner, statistics, etc.).
.IP "-r \fIfile\fP"
Provide an input capture file to read from instead of performing
a live capture. This option does not require root privileges.
.IP "-s"
Run httpry in an HTTP request per second display mode. This periodically
displays the rate per active host and total rate at a specified interval.
.IP "-S"
Specify a number of bytes to skip in the ethernet header. This allows for
custom header offsets to be accounted for.
.IP "-t \fIseconds\fP"
Specify the host statistics display interval in seconds when running in
rate statistics mode (-s). Defaults to 5 seconds.
.IP "-u \fIuser\fP"
Specify an alternate user to take ownership of the process and any output
files. You will need root privileges to do this; it will switch to the new
user after initialization.
.IP "'expression'"
Specify a bpf-style capture filter, overriding the default. Here are a few
basic examples starting with the default filter:
'tcp port 80 or 8080'
'tcp dst port 80'
'tcp dst port 80 and src host 192.168.1.1'
These filters will capture all web traffic both directions on two common
ports, capture only requests made to port 80, and capture requests to port
80 by a particular host, respectively. See 'man tcpdump' for further
information on the syntax and available primitives.
.SH AUTHOR
.I httpry
was written by Jason Bittel <jason.bittel@gmail.com>. See included COPYING
file for specific licensing information