mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 13:02:12 -07:00
Replace arp from net-tools by ip from iproute2 (linux)
This commit is contained in:
parent
3cc5faa297
commit
c55284429e
3 changed files with 12 additions and 6 deletions
|
@ -2,5 +2,8 @@ package net
|
|||
|
||||
import "regexp"
|
||||
|
||||
var ArpTableParser = regexp.MustCompile("^[^\\d\\.]+([\\d\\.]+).+\\s+([a-f0-9:]{17}).+\\s+(.+)$")
|
||||
var ArpTableParser = regexp.MustCompile("^([\\d\\.]+)\\s+dev\\s+(\\w+)\\s+\\w+\\s+([a-f0-9:]{17})\\s+\\w+$")
|
||||
var ArpTableTokens = 4
|
||||
var ArpTableTokenIndex = []uint{1, 3, 2}
|
||||
var ArpCmd = "ip"
|
||||
var ArpCmdOpts = []string{"neigh"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue