mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
Add merged pull requests
This commit is contained in:
parent
40c7203d1f
commit
090ba11e5a
2 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,7 @@ func (mod *ArpSpoofer) arpSpoofTargets(saddr net.IP, smac net.HardwareAddr, chec
|
||||||
isSpoofing := false
|
isSpoofing := false
|
||||||
|
|
||||||
// are we spoofing the gateway IP?
|
// are we spoofing the gateway IP?
|
||||||
if bytes.Equal(saddr, gwIP) {
|
if net.IP.Equal(saddr, gwIP) {
|
||||||
isGW = true
|
isGW = true
|
||||||
// are we restoring the original MAC of the gateway?
|
// are we restoring the original MAC of the gateway?
|
||||||
if !bytes.Equal(smac, gwHW) {
|
if !bytes.Equal(smac, gwHW) {
|
||||||
|
|
|
@ -399,6 +399,7 @@ func (p *HTTPProxy) httpsWorker() error {
|
||||||
},
|
},
|
||||||
Host: hostname,
|
Host: hostname,
|
||||||
Header: make(http.Header),
|
Header: make(http.Header),
|
||||||
|
RemoteAddr: c.RemoteAddr().String(),
|
||||||
}
|
}
|
||||||
p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req)
|
p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req)
|
||||||
}(c)
|
}(c)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue