Last active
July 14, 2021 15:34
-
-
Save enonethreezed/a7188710277aba3fd0ec6ebe105023a1 to your computer and use it in GitHub Desktop.
Search MAC from ieee last data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo > oui.txt | |
if [ -z "$*" ]; then | |
echo "Usage: mac.sh 00:00:00" | |
exit | |
fi | |
wget -t 0 -c http://standards.ieee.org/develop/regauth/oui/oui.txt -O oui.txt | |
MAC=`echo $1|sed s/\:/\-/g` | |
grep -A 5 ${MAC^^} oui.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment