Skip to content

Converts the IEEE oui.txt file to a sorted hash table in the python file format

Notifications You must be signed in to change notification settings

theweefies/oui2hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

oui2hash

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

Some of the key features are:

  • 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

Requirements:

  • there are no requirements outside of the standard python library.
  • an oui.txt file

Install:

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.

How to run:

$./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.

About

Converts the IEEE oui.txt file to a sorted hash table in the python file format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages