Created
July 2, 2012 14:18
-
-
Save tatic0/3033482 to your computer and use it in GitHub Desktop.
mac address lookup (needs wireshark installed)
This file contains hidden or 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/bash | |
if [[ ! $1 ]] | |
then echo "Usage: $0 <mac address>" | |
exit 1 | |
else | |
mac=$1 | |
#echo ${mac:0:8} | |
oui=${mac:0:8} | |
grep -i $oui /usr/share/wireshark/manuf | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment