From cd0e2f18e6626f5d02ab749a001934a016eee966 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 5 Aug 2011 13:26:39 +1200 Subject: First draft of scripting docs. --- doc-src/mitmdump.html | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'doc-src/mitmdump.html') diff --git a/doc-src/mitmdump.html b/doc-src/mitmdump.html index 4d0683ea..1ca5a020 100644 --- a/doc-src/mitmdump.html +++ b/doc-src/mitmdump.html @@ -8,28 +8,36 @@ documentation. ## Example: saving traffic - mitmdump -w outfile +
+mitmdump -w outfile
+
Start up mitmdump in proxy mode, and write all traffic to __outfile__. ## Example: client replay - mitmdump -nc outfile +
+mitmdump -nc outfile
+
Start mitmdump without binding to the proxy port (_-n_), then replay all requests from outfile (_-c filename_). Flags combine in the obvious way, so you can replay requests from one file, and write the resulting flows to another: - mitmdump -nc srcfile -w dstfile +
+mitmdump -nc srcfile -w dstfile
+
See the [Client-side Replay](@!urlTo("clientreplay.html")!@) section for more information. ## Example: running a script - mitmdump -s examples/add_header.py +
+mitmdump -s examples/add_header.py
+
This runs the __add_header.py__ example script, which simply adds a new header to all responses. @@ -37,7 +45,9 @@ to all responses. ## Example: scripted data transformation - mitmdump -ns examples/add_header.py -r srcfile -w dstfile +
+mitmdump -ns examples/add_header.py -r srcfile -w dstfile
+
This command loads flows from __srcfile__, transforms it according to the specified script, then writes it back to __dstfile__. -- cgit v1.2.3