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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
|
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "MITMPROXY" "1" "June 2014" "" ""
.
.SH "NAME"
\fBmitmproxy\fR \- a man\-in\-the\-middle proxy
.
.SH "SYNOPSIS"
\fBmitmproxy\fR [\fIoptions\fR]
.
.SH "DESCRIPTION"
\fBmitmproxy\fR is a console tool that allows interactive examination and modification of HTTP traffic\. It differs from mitmdump in that all flows are kept in memory, which means that it\'s intended for taking and manipulating small\-ish samples\. Use the ? shortcut key to view, context\-sensitive documentation from any mitmproxy screen\.
.
.SH "OPTIONS"
Optional Arguments
.
.TP
\fB\-h\fR, \fB\-\-help\fR
show this help message and exit
.
.TP
\fB\-\-version\fR
show program\'s version number and exit
.
.TP
\fB\-b ADDR\fR
Address to bind proxy to (defaults to all interfaces)
.
.TP
\fB\-\-anticache\fR
Strip out request headers that might cause the server to return 304\-not\-modified\.
.
.TP
\fB\-\-confdir CONFDIR\fR
Configuration directory\. (~/\.mitmproxy)
.
.TP
\fB\-e\fR
Show event log\.
.
.TP
\fB\-n\fR
Don\'t start a proxy server\.
.
.TP
\fB\-p PORT\fR
Proxy service port\.
.
.TP
\fB\-P REVERSE_PROXY\fR
Reverse proxy to upstream server: http[s]://host[:port]
.
.TP
\fB\-F FORWARD_PROXY\fR
Proxy to unconditionally forward to: http[s]://host[:port]
.
.TP
\fB\-q\fR
Quiet\.
.
.TP
\fB\-r RFILE\fR
Read flows from file\.
.
.TP
\fB\-s "script\.py \-\-bar"\fR
Run a script\. Surround with quotes to pass script arguments\. Can be passed multiple times\.
.
.TP
\fB\-t FILTER\fR
Set sticky cookie filter\. Matched against requests\.
.
.TP
\fB\-T\fR
Set transparent proxy mode\.
.
.TP
\fB\-u FILTER\fR
Set sticky auth filter\. Matched against requests\.
.
.TP
\fB\-v\fR
Increase verbosity\. Can be passed multiple times\.
.
.TP
\fB\-w WFILE\fR
Write flows to file\.
.
.TP
\fB\-z\fR
Try to convince servers to send us un\-compressed data\.
.
.TP
\fB\-Z SIZE\fR
Byte size limit of HTTP request and response bodies\. Understands k/m/g suffixes, i\.e\. 3m for 3 megabytes\.
.
.TP
\fB\-\-host\fR
Use the Host header to construct URLs for display\.
.
.TP
\fB\-\-no\-upstream\-cert\fR
Don\'t connect to upstream server to look up certificate details\.
.
.TP
\fB\-\-debug\fR
Enable debug information\.
.
.TP
\fB\-\-palette PALETTE\fR
Select color palette: dark, light, solarized_dark, solarized_light
.
.P
Web App
.
.TP
\fB\-a\fR
Disable the mitmproxy web app\.
.
.TP
\fB\-\-app\-host host\fR
Domain to serve the app from\. For transparent mode, use an IP when a DNS entry for the app domain is not present\. Default: mitm\.it
.
.TP
\fB\-\-app\-port 80\fR
Port to serve the app from\.
.
.TP
\fB\-\-app\-external\fR
Serve the app outside of the proxy\.
.
.P
Client Replay
.
.TP
\fB\-c PATH\fR
Replay client requests from a saved file\.
.
.P
Server Replay
.
.TP
\fB\-S PATH\fR
Replay server responses from a saved file\.
.
.TP
\fB\-k\fR
Kill extra requests during replay\.
.
.TP
\fB\-\-rheader RHEADERS\fR
Request headers to be considered during replay\. Can be passed multiple times\.
.
.TP
\fB\-\-norefresh\fR
Disable response refresh, which updates times in cookies and headers for replayed responses\.
.
.TP
\fB\-\-no\-pop\fR
Disable response pop from response flow\. This makes it possible to replay same response multiple times\.
.
.P
Replacements
.
.P
Replacements are of the form "/pattern/regex/replacement", where the separator can be any character\. Please see the documentation for more information\.
.
.TP
\fB\-\-replace PATTERN\fR
Replacement pattern\.
.
.TP
\fB\-\-replace\-from\-file PATH\fR
Replacement pattern, where the replacement clause is a path to a file\.
.
.P
Set Headers
.
.P
Header specifications are of the form "/pattern/header/value", where the separator can be any character\. Please see the documentation for more information\.
.
.TP
\fB\-\-setheader PATTERN\fR
Header set pattern\.
.
.P
Proxy Authentication
.
.P
Specify which users are allowed to access the proxy and the method used for authenticating them\. These options are ignored if the proxy is in transparent or reverse proxy mode\.
.
.TP
\fB\-\-nonanonymous\fR
Allow access to any user long as a credentials are specified\.
.
.TP
\fB\-\-singleuser USER\fR
Allows access to a a single user, specified in the form username:password\.
.
.TP
\fB\-\-htpasswd PATH\fR
Allow access to users specified in an Apache htpasswd file\.
.
.P
SSL
.
.TP
\fB\-\-cert\fR
CERT User\-created SSL certificate file\.
.
.TP
\fB\-\-client\-certs CLIENTCERTS\fR
Client certificate directory\.
.
.P
Filters
.
.P
See help in mitmproxy for filter expression syntax\.
.
.TP
\fB\-i INTERCEPT\fR, \fB\-\-intercept INTERCEPT\fR
Intercept filter expression\.
.
.SH "AUTHORS"
\fBmitmproxy\fR was written by Aldo Cortesi\.
.
.P
This manual page was written by Alex Chernyakhovsky \fIachernya@mit\.edu\fR for the \fBDebian GNU/Linux\fR system, but its use elsewhere is encouraged\.
.
.SH "SEE ALSO"
\fBmitmproxy\fR documentation and examples are available online at \fIhttp://mitmproxy\.org/doc/mitmproxy\.html\fR\.
|