mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -07:00
fix: made arp.spoof debug less verbose (ref #483)
This commit is contained in:
parent
8958fffd28
commit
8317aded14
1 changed files with 2 additions and 4 deletions
|
@ -214,7 +214,6 @@ func (mod *ArpSpoofer) getTargets(probe bool) map[string]net.HardwareAddr {
|
||||||
// add targets specified by IP address
|
// add targets specified by IP address
|
||||||
for _, ip := range mod.addresses {
|
for _, ip := range mod.addresses {
|
||||||
if mod.Session.Skip(ip) {
|
if mod.Session.Skip(ip) {
|
||||||
mod.Debug("skipping IP %s from arp spoofing.", ip)
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// do we have this ip mac address?
|
// do we have this ip mac address?
|
||||||
|
@ -226,10 +225,9 @@ func (mod *ArpSpoofer) getTargets(probe bool) map[string]net.HardwareAddr {
|
||||||
for _, hw := range mod.macs {
|
for _, hw := range mod.macs {
|
||||||
if ip, err := network.ArpInverseLookup(mod.Session.Interface.Name(), hw.String(), false); err == nil {
|
if ip, err := network.ArpInverseLookup(mod.Session.Interface.Name(), hw.String(), false); err == nil {
|
||||||
if mod.Session.Skip(net.ParseIP(ip)) {
|
if mod.Session.Skip(net.ParseIP(ip)) {
|
||||||
mod.Debug("skipping address %s from arp spoofing.", ip)
|
continue
|
||||||
} else {
|
|
||||||
targets[ip] = hw
|
|
||||||
}
|
}
|
||||||
|
targets[ip] = hw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue