mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
new: added new arp.spoof.whitelist variable which supports macs, ips, ip ranges and aliases (closes #205)
This commit is contained in:
parent
54607993ba
commit
6c50cc2918
3 changed files with 23018 additions and 22983 deletions
|
@ -71,6 +71,10 @@ func ParseTargets(targets string, aliasMap *Aliases) (ips []net.IP, macs []net.H
|
|||
ips = make([]net.IP, 0)
|
||||
macs = make([]net.HardwareAddr, 0)
|
||||
|
||||
if targets = core.Trim(targets); targets == "" {
|
||||
return
|
||||
}
|
||||
|
||||
// first isolate MACs and parse them
|
||||
for _, mac := range macParser.FindAllString(targets, -1) {
|
||||
mac = NormalizeMac(mac)
|
||||
|
|
45851
network/oui.go
45851
network/oui.go
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue