new: added new arp.spoof.whitelist variable which supports macs, ips, ip ranges and aliases (closes #205)

This commit is contained in:
evilsocket 2018-03-26 11:58:31 +02:00
commit 6c50cc2918
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 23018 additions and 22983 deletions

View file

@ -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)

File diff suppressed because it is too large Load diff