mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
da48a0fa69
commit
e438963e48
1 changed files with 2 additions and 2 deletions
|
@ -148,11 +148,11 @@ func (p *ArpSpoofer) pktRouter(eth *layers.Ethernet, ip4 *layers.IPv4, pkt gopac
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("Got packet to route: %s\n", pkt.String())
|
log.Info("Got packet to %s -> %s (%s)\n", ip4.SrcIP.String(), ip4.DstIP.String(), eth.DstMAC.String())
|
||||||
|
|
||||||
copy(eth.DstMAC, p.Session.Gateway.HW)
|
copy(eth.DstMAC, p.Session.Gateway.HW)
|
||||||
|
|
||||||
log.Info("After: %s\n", pkt.String())
|
log.Info("FIXED: %s -> %s (%s)\n", ip4.SrcIP.String(), ip4.DstIP.String(), eth.DstMAC.String())
|
||||||
|
|
||||||
data := pkt.Data()
|
data := pkt.Data()
|
||||||
if err := p.Session.Queue.Send(data); err != nil {
|
if err := p.Session.Queue.Send(data); err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue