diff --git a/modules/arp_spoof/arp_spoof.go b/modules/arp_spoof/arp_spoof.go index 9d3a9cf5..9c3d7392 100644 --- a/modules/arp_spoof/arp_spoof.go +++ b/modules/arp_spoof/arp_spoof.go @@ -252,7 +252,7 @@ func (mod *ArpSpoofer) arpSpoofTargets(saddr net.IP, smac net.HardwareAddr, chec isSpoofing := false // are we spoofing the gateway IP? - if bytes.Equal(saddr, gwIP) { + if net.IP.Equal(saddr, gwIP) { isGW = true // are we restoring the original MAC of the gateway? if !bytes.Equal(smac, gwHW) { diff --git a/modules/http_proxy/http_proxy_base.go b/modules/http_proxy/http_proxy_base.go index 7fc6eefe..3cad6bf2 100644 --- a/modules/http_proxy/http_proxy_base.go +++ b/modules/http_proxy/http_proxy_base.go @@ -399,6 +399,7 @@ func (p *HTTPProxy) httpsWorker() error { }, Host: hostname, Header: make(http.Header), + RemoteAddr: c.RemoteAddr().String(), } p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req) }(c)