mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 21:42:06 -07:00
new: experimental ipv6 ndp spoofer (closes #851)
This commit is contained in:
parent
cbc1432358
commit
57436a811c
8 changed files with 256 additions and 13 deletions
|
@ -112,6 +112,8 @@ func ParseTargets(targets string, aliasMap *data.UnsortedKV) (ips []net.IP, macs
|
|||
}
|
||||
targets = strings.Trim(targets, ", ")
|
||||
|
||||
fmt.Printf("targets=%s macs=%#v\n", targets, macs)
|
||||
|
||||
// check and resolve aliases
|
||||
for _, targetAlias := range aliasParser.FindAllString(targets, -1) {
|
||||
found := false
|
||||
|
@ -137,7 +139,7 @@ func ParseTargets(targets string, aliasMap *data.UnsortedKV) (ips []net.IP, macs
|
|||
if targets != "" {
|
||||
list, err := iprange.ParseList(targets)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("error while parsing address list '%s': %s.", targets, err)
|
||||
return nil, nil, fmt.Errorf("error while parsing address list '%s': %s", targets, err)
|
||||
}
|
||||
|
||||
ips = list.Expand()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue