fwxs / py-ouilookup

Looks up the OUI of a mac address.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py-ouilookup

Looks up the OUI of the provided mac address, using the linux.ca nmap-mac-prefixes file.

Usage

ouilookup.py 00:11:22:33:44:55

[*] Found vendor: 00:11:22 -> Vendor

OR

ouilookup.py FF:11:FF:33:44:55
[*] Vendor not found.

Internals

The script gets the first 24-bits of the MAC address (OUI), search it in the oui.db database and prints the vendor name. If the oui.db file doesn't exists, it downloads the nmap-mac-prefixes file from linux.ca, reads it and then store the OUI and its respective vendor name on a sqlite database.

About

Looks up the OUI of a mac address.

License:MIT License


Languages

Language:Python 100.0%