Skip to content

Instantly share code, notes, and snippets.

@tatic0
Created July 2, 2012 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatic0/3033482 to your computer and use it in GitHub Desktop.
Save tatic0/3033482 to your computer and use it in GitHub Desktop.
mac address lookup (needs wireshark installed)
#!/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