From e438963e489c64ed11e8f6ab04e871004662a14d Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 15 Feb 2018 18:13:20 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/arp_spoof.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/arp_spoof.go b/modules/arp_spoof.go index e3505c58..b87b22e0 100644 --- a/modules/arp_spoof.go +++ b/modules/arp_spoof.go @@ -148,11 +148,11 @@ func (p *ArpSpoofer) pktRouter(eth *layers.Ethernet, ip4 *layers.IPv4, pkt gopac 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) - 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() if err := p.Session.Queue.Send(data); err != nil {