aboutsummaryrefslogtreecommitdiffstats
path: root/docs/features
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-03-14 02:23:31 +0100
committerGitHub <noreply@github.com>2017-03-14 02:23:31 +0100
commit961747c4bc9f14d2f9f8f405d77a2470f7da5207 (patch)
treea4c72ca05e205439a8da509e2831cdeed1b8bdcf /docs/features
parent124a6c9e5af44121208c3362215cc3ea895ffad7 (diff)
parent05e11547f5875a4b5b3c109db8a1db477d1986ad (diff)
downloadmitmproxy-961747c4bc9f14d2f9f8f405d77a2470f7da5207.tar.gz
mitmproxy-961747c4bc9f14d2f9f8f405d77a2470f7da5207.tar.bz2
mitmproxy-961747c4bc9f14d2f9f8f405d77a2470f7da5207.zip
Merge pull request #2120 from ujjwal96/replace-from-file
Replace from file through replacement editor #1458
Diffstat (limited to 'docs/features')
-rw-r--r--docs/features/replacements.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/features/replacements.rst b/docs/features/replacements.rst
index 215f0ddb..39dccca2 100644
--- a/docs/features/replacements.rst
+++ b/docs/features/replacements.rst
@@ -48,14 +48,14 @@ In practice, it's pretty common for the replacement literal to be long and
complex. For instance, it might be an XSS exploit that weighs in at hundreds or
thousands of characters. To cope with this, there's a variation of the
replacement hook specifier that lets you load the replacement text from a file.
-So, you might start **mitmdump** as follows:
+To specify a file as replacement, prefix the file path with ``@``.
+You might start **mitmdump** as follows:
->>> mitmdump --replace-from-file :~q:foo:~/xss-exploit
+>>> mitmdump --replacements :~q:foo:@~/xss-exploit
This will load the replacement text from the file ``~/xss-exploit``.
-Both the ``--replace`` and ``--replace-from-file`` flags can be passed multiple
-times.
+The ``--replacements`` flag can be passed multiple times.
Interactively
@@ -66,7 +66,6 @@ replacement hooks using a built-in editor. The context-sensitive help (:kbd:`?`)
complete usage information.
================== =======================
-command-line ``--replace``,
- ``--replace-from-file``
+command-line ``--replacements``
mitmproxy shortcut :kbd:`O` then :kbd:`R`
================== =======================