diff options
Diffstat (limited to 'examples/complex')
-rw-r--r-- | examples/complex/dns_spoofing.py | 6 | ||||
-rw-r--r-- | examples/complex/dup_and_replay.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/complex/dns_spoofing.py b/examples/complex/dns_spoofing.py index e28934ab..a3c1a017 100644 --- a/examples/complex/dns_spoofing.py +++ b/examples/complex/dns_spoofing.py @@ -13,12 +13,12 @@ Usage: -p 443 -s dns_spoofing.py # Used as the target location if neither SNI nor host header are present. - -R http://example.com/ + --mode reverse:http://example.com/ # To avoid auto rewriting of host header by the reverse proxy target. - --keep-host-header + --set keep-host-header mitmdump -p 80 - -R http://localhost:443/ + --mode reverse:http://localhost:443/ (Setting up a single proxy instance and using iptables to redirect to it works as well) diff --git a/examples/complex/dup_and_replay.py b/examples/complex/dup_and_replay.py index adcebff3..3ad98dc5 100644 --- a/examples/complex/dup_and_replay.py +++ b/examples/complex/dup_and_replay.py @@ -9,6 +9,6 @@ def request(flow): # Only interactive tools have a view. If we have one, add a duplicate entry # for our flow. if "view" in ctx.master.addons: - ctx.master.commands.call("view.add", [flow]) + ctx.master.commands.call("view.flows.add", [flow]) flow.request.path = "/changed" ctx.master.commands.call("replay.client", [flow]) |