fix: do not probe while arp.spoofing, fixes arp.spoof on the whole subnet

This commit is contained in:
evilsocket 2018-05-10 10:39:56 +02:00
commit e9fa015962
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -140,10 +140,10 @@ func (p *ArpSpoofer) Start() error {
gwIP := p.Session.Gateway.IP
myMAC := p.Session.Interface.HW
for p.Running() {
p.sendArp(gwIP, myMAC, true, true)
p.sendArp(gwIP, myMAC, true, false)
for _, address := range neighbours {
if !p.Session.Skip(address) {
p.sendArp(address, myMAC, true, true)
p.sendArp(address, myMAC, true, false)
}
}