diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-12-23 00:14:32 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-12-23 00:14:32 +0100 |
commit | ebae1ebe5dfe08bde978ae24f0346d3b1f045a7e (patch) | |
tree | e5870dae440c5e12b4fed876a45f74446dd50b5f /libmproxy/cmdline.py | |
parent | 120ab5c4cd4d241526be76a55ca8c7c2d4460097 (diff) | |
parent | 7e1b35bfc7109ed91e9086e30fdd069a53d59df3 (diff) | |
download | mitmproxy-ebae1ebe5dfe08bde978ae24f0346d3b1f045a7e.tar.gz mitmproxy-ebae1ebe5dfe08bde978ae24f0346d3b1f045a7e.tar.bz2 mitmproxy-ebae1ebe5dfe08bde978ae24f0346d3b1f045a7e.zip |
Merge pull request #432 from tekii/master
--replay_ignore_payload_params added, to filter params in form posts
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r-- | libmproxy/cmdline.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index bf5add33..ec03d63e 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -183,7 +183,8 @@ def get_common_options(options): verbosity=options.verbose, nopop=options.nopop, replay_ignore_content = options.replay_ignore_content, - replay_ignore_params = options.replay_ignore_params + replay_ignore_params = options.replay_ignore_params, + replay_ignore_payload_params = options.replay_ignore_payload_params ) @@ -438,13 +439,24 @@ def common_options(parser): help="Disable response pop from response flow. " "This makes it possible to replay same response multiple times." ) - group.add_argument( + payload = group.add_mutually_exclusive_group() + payload.add_argument( "--replay-ignore-content", action="store_true", dest="replay_ignore_content", default=False, help=""" Ignore request's content while searching for a saved flow to replay """ ) + payload.add_argument( + "--replay-ignore-payload-param", + action="append", dest="replay_ignore_payload_params", type=str, + help=""" + Request's payload parameters (application/x-www-form-urlencoded) to + be ignored while searching for a saved flow to replay. + Can be passed multiple times. + """ + ) + group.add_argument( "--replay-ignore-param", action="append", dest="replay_ignore_params", type=str, |