From aaff9dfd32ec32e98000b66c4ee9f3e328ab0c91 Mon Sep 17 00:00:00 2001 From: Ammonite Date: Mon, 30 Jan 2017 23:41:47 +0100 Subject: [PATCH] Reset the host header to the correct destination --- examples/complex/dns_spoofing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/complex/dns_spoofing.py b/examples/complex/dns_spoofing.py index 5e6cf9785..1fb59f74c 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