From e0382fde2f6869554d68137639e2921ceb1e63b6 Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Sat, 11 Mar 2017 11:14:22 +0530 Subject: Changed docs --- docs/features/replacements.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/features') diff --git a/docs/features/replacements.rst b/docs/features/replacements.rst index 215f0ddb..d46b3a8b 100644 --- a/docs/features/replacements.rst +++ b/docs/features/replacements.rst @@ -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 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. +To specify a file as replacement, prefix the file path with ``@`` 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``. -Both the ``--replace`` and ``--replace-from-file`` flags can be passed multiple +The ``--replacements`` flag can be passed multiple times. @@ -66,7 +67,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` ================== ======================= -- cgit v1.2.3 From 74f2a28e416ceb75c07baf8202b959efcbef1b37 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 11 Mar 2017 14:46:33 +0100 Subject: minor fixes --- docs/features/replacements.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs/features') diff --git a/docs/features/replacements.rst b/docs/features/replacements.rst index d46b3a8b..39dccca2 100644 --- a/docs/features/replacements.rst +++ b/docs/features/replacements.rst @@ -48,15 +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. -To specify a file as replacement, prefix the file path with ``@`` -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 --replacements :~q:foo:@~/xss-exploit This will load the replacement text from the file ``~/xss-exploit``. -The ``--replacements`` flag can be passed multiple -times. +The ``--replacements`` flag can be passed multiple times. Interactively -- cgit v1.2.3