mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
Some fixes on recon and probing.
This commit is contained in:
parent
0091ffdbb3
commit
6b89145e80
4 changed files with 18 additions and 7 deletions
|
@ -91,6 +91,17 @@ func (d *Discovery) Start() error {
|
|||
}
|
||||
|
||||
if len(new) > 0 || len(rem) > 0 {
|
||||
n_gw_shared := 0
|
||||
for ip, mac := range new {
|
||||
if ip != d.Session.Gateway.IpAddress && mac == d.Session.Gateway.HwAddress {
|
||||
n_gw_shared++
|
||||
}
|
||||
}
|
||||
|
||||
if n_gw_shared > 0 {
|
||||
log.Warningf("WARNING: %d endpoints share the same MAC of the gateway, there're might be some IP isolation going on.\n", n_gw_shared)
|
||||
}
|
||||
|
||||
// refresh target pool
|
||||
for ip, mac := range new {
|
||||
d.Session.Targets.AddIfNotExist(ip, mac)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue