tmaclookup - scripts - random scripts
HTML git clone https://git.parazyd.org/scripts
DIR Log
DIR Files
DIR Refs
---
tmaclookup (141B)
---
1 #!/bin/sh
2
3 MACFILE="/usr/share/nmap/nmap-mac-prefixes"
4 MACADDR="$(printf "%s" "$*" | tr -d ":" | cut -c1-6)"
5
6 grep -i "^$MACADDR" "$MACFILE"