Changed docs

This commit is contained in:
Ujjwal Verma 2017-03-11 11:14:22 +05:30
parent 25703f8c53
commit e0382fde2f

View File

@ -48,13 +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 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 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. replacement hook specifier that lets you load the replacement text from a file.
To specify a file as replacement, prefix the file path with ``@``
So, you might start **mitmdump** as follows: So, 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``. This will load the replacement text from the file ``~/xss-exploit``.
Both the ``--replace`` and ``--replace-from-file`` flags can be passed multiple The ``--replacements`` flag can be passed multiple
times. times.
@ -66,7 +67,6 @@ replacement hooks using a built-in editor. The context-sensitive help (:kbd:`?`)
complete usage information. complete usage information.
================== ======================= ================== =======================
command-line ``--replace``, command-line ``--replacements``
``--replace-from-file``
mitmproxy shortcut :kbd:`O` then :kbd:`R` mitmproxy shortcut :kbd:`O` then :kbd:`R`
================== ======================= ================== =======================