mirror of
https://github.com/bettercap/bettercap
synced 2025-07-14 00:53:46 -07:00
fix: Cannot parse arp table since MAC addresses are not padded with 0 on macOS.
This commit is contained in:
parent
3a55b03ad0
commit
64d6fce727
1 changed files with 1 additions and 1 deletions
|
@ -2,5 +2,5 @@ package net
|
|||
|
||||
import "regexp"
|
||||
|
||||
var ArpTableParser = regexp.MustCompile("^[^\\d\\.]+([\\d\\.]+).+\\s+([a-f0-9:]{17})\\s+on\\s+([^\\s]+)\\s+.+$")
|
||||
var ArpTableParser = regexp.MustCompile("^[^\\d\\.]+([\\d\\.]+).+\\s+([a-f0-9:]{11,17})\\s+on\\s+([^\\s]+)\\s+.+$")
|
||||
var ArpTableTokens = 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue