mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: do not probe while arp.spoofing, fixes arp.spoof on the whole subnet
This commit is contained in:
parent
a465116160
commit
e9fa015962
1 changed files with 2 additions and 2 deletions
|
@ -140,10 +140,10 @@ func (p *ArpSpoofer) Start() error {
|
||||||
gwIP := p.Session.Gateway.IP
|
gwIP := p.Session.Gateway.IP
|
||||||
myMAC := p.Session.Interface.HW
|
myMAC := p.Session.Interface.HW
|
||||||
for p.Running() {
|
for p.Running() {
|
||||||
p.sendArp(gwIP, myMAC, true, true)
|
p.sendArp(gwIP, myMAC, true, false)
|
||||||
for _, address := range neighbours {
|
for _, address := range neighbours {
|
||||||
if !p.Session.Skip(address) {
|
if !p.Session.Skip(address) {
|
||||||
p.sendArp(address, myMAC, true, true)
|
p.sendArp(address, myMAC, true, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue