From aaff9dfd32ec32e98000b66c4ee9f3e328ab0c91 Mon Sep 17 00:00:00 2001 From: Ammonite Date: Mon, 30 Jan 2017 23:41:47 +0100 Subject: Reset the host header to the correct destination --- examples/complex/dns_spoofing.py | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/complex/dns_spoofing.py b/examples/complex/dns_spoofing.py index 5e6cf978..1fb59f74 100644 --- a/examples/complex/dns_spoofing.py +++ b/examples/complex/dns_spoofing.py @@ -53,6 +53,7 @@ class Rerouter: if m.group("port"): port = int(m.group("port")) + flow.request.headers["Host"] = host_header flow.request.host = sni or host_header flow.request.port = port -- cgit v1.2.3