Skip to content

Instantly share code, notes, and snippets.

@antimech
Last active November 22, 2023 08:22
Show Gist options
  • Save antimech/2ed060c0a1ebfe4859be8520cfa4621f to your computer and use it in GitHub Desktop.
Save antimech/2ed060c0a1ebfe4859be8520cfa4621f to your computer and use it in GitHub Desktop.
Search for MAC device vendor quickly (offline). Requires nmap installed. Use: $ mac 3C0518. Put in /bin/ directory and add +x permission for ease of use.
#!/usr/bin/env bash
NMAP_DICTIONARY_PATH=$(locate mac-prefixes)
grep $1 $NMAP_DICTIONARY_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment