With oui2hash, you can easily transform the IEEE oui.txt file into a python format hash table.
This makes it easy to include in your project as an importable module.
The hash table is sorted, with keys as the OUI, and the values being the manufacturer string
- intake of text oui file from the IEEE website
- parsing the file for the OUI and manufacturer string
- creates a properly formatted python file with the hash table, ready to query
- there are no requirements outside of the standard python library.
- an oui.txt file
To install, clone this repo via the following command line code:
$git clone [email protected]:theweefies/oui2hash.git
Github now requires the use of ssh keys. For information on how to set up ssh keys, click here.
$./oui2hash.py oui.txt
Note: you should not need to run sudo with this script, but it was made in windows, so you may need to run it through dos2unix to get it to work.