mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 16:13:48 -07:00
18 lines
289 B
Text
18 lines
289 B
Text
package network
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
var oui = #MAP#
|
|
|
|
func OuiLookup(mac string) string {
|
|
octects := strings.Split(mac, ":")
|
|
if len(octects) > 3 {
|
|
prefix := octects[0] + octects[1] + octects[2]
|
|
if vendor, found := oui[prefix]; found == true {
|
|
return vendor
|
|
}
|
|
}
|
|
return ""
|
|
}
|