From fbd0375e955f49672b9c49270335f3426c8880c4 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 15 Feb 2018 18:15:08 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/arp_spoof.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/arp_spoof.go b/modules/arp_spoof.go index b87b22e0..e7302db2 100644 --- a/modules/arp_spoof.go +++ b/modules/arp_spoof.go @@ -148,18 +148,19 @@ func (p *ArpSpoofer) pktRouter(eth *layers.Ethernet, ip4 *layers.IPv4, pkt gopac return } - log.Info("Got packet to %s -> %s (%s)\n", ip4.SrcIP.String(), ip4.DstIP.String(), eth.DstMAC.String()) + // log.Info("Got packet to %s -> %s (%s)", ip4.SrcIP.String(), ip4.DstIP.String(), eth.DstMAC.String()) copy(eth.DstMAC, p.Session.Gateway.HW) - log.Info("FIXED: %s -> %s (%s)\n", ip4.SrcIP.String(), ip4.DstIP.String(), eth.DstMAC.String()) + // log.Info("FIXED: %s -> %s (%s)", ip4.SrcIP.String(), ip4.DstIP.String(), eth.DstMAC.String()) data := pkt.Data() if err := p.Session.Queue.Send(data); err != nil { log.Error("Could not reinject packet: %s", err) - } else { - log.Info("Reinjected %d bytes.", len(data)) } + /*else { + log.Info("Reinjected %d bytes.", len(data)) + }*/ } func (p *ArpSpoofer) Configure() error {